diff options
author | peterbell10 <peterbell10@live.co.uk> | 2018-07-26 23:24:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 23:24:36 +0200 |
commit | 950aeffff8d641a0855fbd9a9b2993d9dfd7d2c3 (patch) | |
tree | 5e6fde4625714922e970bd5ad4ea339f58ab6b57 /src/StringUtils.cpp | |
parent | At long last... Piston animations! (diff) | |
download | cuberite-950aeffff8d641a0855fbd9a9b2993d9dfd7d2c3.tar cuberite-950aeffff8d641a0855fbd9a9b2993d9dfd7d2c3.tar.gz cuberite-950aeffff8d641a0855fbd9a9b2993d9dfd7d2c3.tar.bz2 cuberite-950aeffff8d641a0855fbd9a9b2993d9dfd7d2c3.tar.lz cuberite-950aeffff8d641a0855fbd9a9b2993d9dfd7d2c3.tar.xz cuberite-950aeffff8d641a0855fbd9a9b2993d9dfd7d2c3.tar.zst cuberite-950aeffff8d641a0855fbd9a9b2993d9dfd7d2c3.zip |
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; |