summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-03 22:19:43 +0200
committermadmaxoft <github@xoft.cz>2014-08-03 22:19:43 +0200
commitb19874e6f2c8894648c25efb0e9fa176b6688729 (patch)
tree88cca09c996dd2b5fff7442b5c02cb93d7045e98 /src/StringUtils.cpp
parentWolf uses UUID for owner. (diff)
downloadcuberite-b19874e6f2c8894648c25efb0e9fa176b6688729.tar
cuberite-b19874e6f2c8894648c25efb0e9fa176b6688729.tar.gz
cuberite-b19874e6f2c8894648c25efb0e9fa176b6688729.tar.bz2
cuberite-b19874e6f2c8894648c25efb0e9fa176b6688729.tar.lz
cuberite-b19874e6f2c8894648c25efb0e9fa176b6688729.tar.xz
cuberite-b19874e6f2c8894648c25efb0e9fa176b6688729.tar.zst
cuberite-b19874e6f2c8894648c25efb0e9fa176b6688729.zip
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r--src/StringUtils.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp
index b0e5a4ffe..decce8065 100644
--- a/src/StringUtils.cpp
+++ b/src/StringUtils.cpp
@@ -230,6 +230,21 @@ AString & StrToLower(AString & s)
+AString StrToLower(const AString & s)
+{
+ AString res;
+ res.resize(s.size());
+ for (AString::iterator itr = res.begin(), end = res.end(); itr != end; ++itr)
+ {
+ *itr = (char)tolower(*itr);
+ }
+ return res;
+}
+
+
+
+
+
int NoCaseCompare(const AString & s1, const AString & s2)
{
#ifdef _MSC_VER