1
0

Added URLDecode() and ReplaceAllCharOccurrences() to StringUtils.

This commit is contained in:
madmaxoft
2013-09-28 19:28:19 +02:00
parent c22ea7efff
commit 3b473f7a67
2 changed files with 76 additions and 0 deletions

View File

@@ -72,6 +72,12 @@ extern AString EscapeString(const AString & a_Message); // tolua_export
/// Removes all control codes used by MC for colors and styles
extern AString StripColorCodes(const AString & a_Message); // tolua_export
/// URL-Decodes the given string, replacing all "%HH" into the correct characters. Invalid % sequences are left intact
extern AString URLDecode(const AString & a_String); // Cannot export to Lua automatically - would generated an extra return value
/// Replaces all occurrences of char a_From inside a_String with char a_To.
extern AString ReplaceAllCharOccurrences(const AString & a_String, char a_From, char a_To); // Needn't export to Lua, since Lua doesn't have chars anyway
// If you have any other string helper functions, declare them here