diff options
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r-- | src/StringUtils.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp index 08dd4774a..ca9d4b587 100644 --- a/src/StringUtils.cpp +++ b/src/StringUtils.cpp @@ -93,6 +93,7 @@ AStringVector StringSplit(const AString & str, const AString & delim) + AStringVector StringSplitWithQuotes(const AString & str, const AString & delim) { AStringVector results; @@ -185,6 +186,7 @@ AString StringJoin(const AStringVector & a_Strings, const AString & a_Delimeter) + AStringVector StringSplitAndTrim(const AString & str, const AString & delim) { AStringVector results; @@ -205,6 +207,7 @@ AStringVector StringSplitAndTrim(const AString & str, const AString & delim) + AString TrimString(const AString & str) { size_t len = str.length(); @@ -346,6 +349,7 @@ void ReplaceString(AString & iHayStack, const AString & iNeedle, const AString & + AString & RawBEToUTF8(const char * a_RawData, size_t a_NumShorts, AString & a_UTF8) { a_UTF8.clear(); @@ -360,6 +364,7 @@ AString & RawBEToUTF8(const char * a_RawData, size_t a_NumShorts, AString & a_UT + AString UnicodeCharToUtf8(unsigned a_UnicodeChar) { if (a_UnicodeChar < 0x80) @@ -610,7 +615,6 @@ are equivalent to the following loop: - #define HEX(x) static_cast<char>((x) > 9 ? (x) + 'A' - 10 : (x) + '0') /** @@ -1052,6 +1056,10 @@ AString StringsConcat(const AStringVector & a_Strings, char a_Separator) return res; } + + + + bool StringToFloat(const AString & a_String, float & a_Num) { char *err; |