Namespaces | Defines | Functions

formula_string_utils.hpp File Reference

#include "serialization/string_utils.hpp"
Include dependency graph for formula_string_utils.hpp:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define VGETTEXT (   msgid,
  symbols 
)    vgettext(msgid, symbols)

Function Documentation

std::string vgettext ( const char *  msgid,
const utils::string_map symbols 
)
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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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