46 TokenMap::iterator t =
_tokens.find(token);
62 std::vector<Common::UString> tokens;
66 for (std::vector<Common::UString>::iterator t = tokens.begin(); t != tokens.end(); ++t) {
69 TokenMap::const_iterator token =
_tokens.find(*t);
71 parsed += (token ==
_tokens.end()) ? *t : token->second;
A class holding an UTF-8 string.
void swap(UString &str)
Swap the contents of the string with this string's.
#define DECLARE_SINGLETON(T)
Note that you need to use this macro from the global namespace.
static void splitTextTokens(const UString &text, std::vector< UString > &tokens)
void remove(const Common::UString &token)
Remove the value of a token.
void set(const Common::UString &token, const Common::UString &value)
Set a value for a token.
Manager for tokens in Aurora engines text strings.
void parse(Common::UString &str) const
Parse a string for tokens, replacing them with their values.
Manager for tokens in Aurora engines text strings.
void clear()
Clear all tokens.