Add overloaded translate() that takes CharPointer_UTF8

This commit is contained in:
Vinnie Falco
2013-08-01 09:58:00 -07:00
parent ed82643faf
commit 57b2c3c2e4
2 changed files with 14 additions and 23 deletions

View File

@@ -150,26 +150,12 @@ LocalisedStrings* LocalisedStrings::getCurrentMappings()
return currentMappings;
}
String LocalisedStrings::translateWithCurrentMappings (const String& text)
{
return beast::translate (text);
}
String LocalisedStrings::translateWithCurrentMappings (const String& text) { return beast::translate (text); }
String LocalisedStrings::translateWithCurrentMappings (const char* text) { return beast::translate (text); }
String LocalisedStrings::translateWithCurrentMappings (const char* text)
{
return beast::translate (String (text));
}
String translate (const String& text)
{
return translate (text, text);
}
String translate (const char* const literal)
{
const String text (literal);
return translate (text, text);
}
String translate (const String& text) { return beast::translate (text, text); }
String translate (const char* text) { return beast::translate (String (text)); }
String translate (CharPointer_UTF8 text) { return beast::translate (String (text)); }
String translate (const String& text, const String& resultIfNotFound)
{