Go to the source code of this file.
Namespaces | |
utils | |
Macros | |
#define | VGETTEXT(msgid, symbols) vgettext(msgid, symbols) |
Functions | |
bool | utils::might_contain_variables (const std::string &str) |
Determines if a string might contain variables to interpolate. More... | |
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. More... | |
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. More... | |
boost::assign_detail::generic_list < std::pair < boost::assign_detail::assign_decay < std::string >::type, boost::assign_detail::assign_decay < std::string >::type > > | string_map_of (const std::string &k, const std::string &v) |
An alias for boost::assign::map_list_of<std::string, std::string> More... | |
std::string | vgettext (const char *msgid, const utils::string_map &symbols) |
Handy wrappers around interpolate_variables_into_string and gettext. More... | |
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 86 of file 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(), gui2::tgame_version::pre_show(), 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().
|
inline |
An alias for boost::assign::map_list_of<std::string, std::string>
Definition at line 62 of file string_utils.hpp.
Referenced by user_choice_manager::update_local_choice().
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 & | |||
) |