#include "serialization/string_utils.hpp"

Go to the source code of this file.
Namespaces | |
| namespace | utils |
Defines | |
| #define | VGETTEXT(msgid, symbols) vgettext(msgid, symbols) |
Functions | |
| std::string | utils::interpolate_variables_into_string (const std::string &str, const string_map *const symbols) |
| Function which will interpolate variables, starting with '$' in the string 'str' with the equivalent symbols in the given symbol table. | |
| std::string | utils::interpolate_variables_into_string (const std::string &str, const variable_set &variables) |
| t_string | utils::interpolate_variables_into_tstring (const t_string &str, const variable_set &variables) |
| Function that does the same as the above, for t_stringS. | |
| std::string | vgettext (const char *msgid, const utils::string_map &symbols) |
| Handy wrappers around interpolate_variables_into_string and gettext. | |
| std::string | vgettext (const char *domain, const char *msgid, const utils::string_map &symbols) |
| std::string | vngettext (const char *, const char *, int, const utils::string_map &) |
| #define VGETTEXT | ( | msgid, | ||
| symbols | ||||
| ) | vgettext(msgid, symbols) |
All function in this file should have an overloaded version with a domain and probably convert all callers to use the macro instead of directly calling the function.
Definition at line 63 of file formula_string_utils.hpp.
Referenced by events::chat_handler::add_whisper_received(), events::chat_handler::add_whisper_sent(), gui2::tlobby_main::add_whisper_sent(), events::map_command_handler< chat_command_handler >::command_failed_need_arg(), events::map_command_handler< chat_command_handler >::dispatch(), events::chat_command_handler::do_friend(), events::chat_command_handler::do_ignore(), events::chat_command_handler::do_info(), events::chat_command_handler::do_register(), events::chat_command_handler::do_remove(), events::chat_command_handler::do_set(), events::console_handler::do_unit(), events::map_command_handler< chat_command_handler >::help(), mp::ui::process_message(), gui2::tlobby_main::process_room_join(), gui2::tlobby_main::process_room_part(), gui2::tlobby_main::search_create_window(), and gui2::tlobby_main::update_gamelist_header().
| std::string vgettext | ( | const char * | msgid, | |
| const utils::string_map & | symbols | |||
| ) |
Handy wrappers around interpolate_variables_into_string and gettext.
Definition at line 219 of file formula_string_utils.cpp.
References _, utils::interpolate_variables_into_string(), and game_logic::msg().
Referenced by unit::add_modification(), addons_client::addons_client(), events::chat_handler::change_logging(), mp::create::create(), addons_client::delete_remote_addon(), deprecate_wml_key_warning(), deprecated_renamed_wml_key_warning(), events::console_handler::do_control(), events::console_handler::do_droid(), events::menu_handler::do_search(), addons_client::download_addon(), game_info::game_info(), mp::connect::side::get_config(), addons_client::install_addon(), team_builder::leader(), mp::connect::load_game(), editor::context_manager::load_map(), missing_mandatory_wml_key(), open_connection(), turn_info::process_network_data(), mp::connect::side::resolve_random(), editor::map_context::save(), events::menu_handler::save_map(), mp::gamebrowser::set_game_items(), gamemap::set_usage(), gui2::tmp_change_control::controller::show_sides_list(), gui2::twindow_builder::tresolution::tresolution(), and addons_client::upload_addon().


| std::string vgettext | ( | const char * | domain, | |
| const char * | msgid, | |||
| const utils::string_map & | symbols | |||
| ) |
Definition at line 226 of file formula_string_utils.cpp.
References utils::interpolate_variables_into_string(), and game_logic::msg().

| std::string vngettext | ( | const char * | , | |
| const char * | , | |||
| int | , | |||
| const utils::string_map & | ||||
| ) |
Definition at line 234 of file formula_string_utils.cpp.
References _n, utils::interpolate_variables_into_string(), and game_logic::msg().
Referenced by events::menu_handler::recall(), and playsingle_controller::report_victory().


| Generated by doxygen 1.7.1 on Fri May 25 2012 01:04:20 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |