16 #ifndef FORMULA_STRING_UTILS_HPP_INCLUDED
17 #define FORMULA_STRING_UTILS_HPP_INCLUDED
20 #include <boost/assign.hpp>
37 {
return str.find(
'$') != std::string::npos; }
57 inline boost::assign_detail::generic_list< std::pair
64 return boost::assign::map_list_of<std::string, std::string>(k,
v);
84 #define VGETTEXT(msgid, symbols) vgettext(GETTEXT_DOMAIN, msgid, symbols)
86 #define VGETTEXT(msgid, symbols) vgettext(msgid, symbols)
std::string 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 ...
std::map< std::string, t_string > string_map
std::map< std::string, t_string > string_map
bool might_contain_variables(const std::string &str)
Determines if a string might contain variables to interpolate.
t_string interpolate_variables_into_tstring(const t_string &tstr, const variable_set &variables)
Function that does the same as the above, for t_stringS.
GLsizei const GLcharARB ** string