summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-03 22:21:49 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-03 22:21:49 +0200
commit65720c8db1c9743f4887c88b913aa006b4bf36dc (patch)
treedd934d4b26a7165d6589cdcd66203dcbfabc5e24 /src/StringUtils.cpp
parentFixed skins in mc 1.7.9/1.7.10 (diff)
parentAttempting a compilation fix for gcc / clang. (diff)
downloadcuberite-65720c8db1c9743f4887c88b913aa006b4bf36dc.tar
cuberite-65720c8db1c9743f4887c88b913aa006b4bf36dc.tar.gz
cuberite-65720c8db1c9743f4887c88b913aa006b4bf36dc.tar.bz2
cuberite-65720c8db1c9743f4887c88b913aa006b4bf36dc.tar.lz
cuberite-65720c8db1c9743f4887c88b913aa006b4bf36dc.tar.xz
cuberite-65720c8db1c9743f4887c88b913aa006b4bf36dc.tar.zst
cuberite-65720c8db1c9743f4887c88b913aa006b4bf36dc.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