The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions
string_utils.hpp File Reference
#include "serialization/string_utils.hpp"
#include <boost/assign.hpp>
Include dependency graph for string_utils.hpp:

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 &)
 

Macro Definition Documentation

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

Function Documentation

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