summaryrefslogtreecommitdiffstats
path: root/source/StringUtils.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-23 01:05:12 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-23 01:05:12 +0200
commit49a4613d94d8e500e5bd3c259693fb5ccec4612e (patch)
treeea2db28bde16c472f02b6a83651df8cf2fe486a9 /source/StringUtils.h
parentAdded a documentation for block and item handlers (diff)
downloadcuberite-49a4613d94d8e500e5bd3c259693fb5ccec4612e.tar
cuberite-49a4613d94d8e500e5bd3c259693fb5ccec4612e.tar.gz
cuberite-49a4613d94d8e500e5bd3c259693fb5ccec4612e.tar.bz2
cuberite-49a4613d94d8e500e5bd3c259693fb5ccec4612e.tar.lz
cuberite-49a4613d94d8e500e5bd3c259693fb5ccec4612e.tar.xz
cuberite-49a4613d94d8e500e5bd3c259693fb5ccec4612e.tar.zst
cuberite-49a4613d94d8e500e5bd3c259693fb5ccec4612e.zip
Diffstat (limited to 'source/StringUtils.h')
-rw-r--r--source/StringUtils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/StringUtils.h b/source/StringUtils.h
index bc3c937b5..6ab95880a 100644
--- a/source/StringUtils.h
+++ b/source/StringUtils.h
@@ -42,6 +42,9 @@ extern AString & StrToUpper(AString & s);
/// Case-insensitive string comparison; returns 0 if the strings are the same
extern int NoCaseCompare(const AString & s1, const AString & s2);
+/// Case-insensitive string comparison that returns a rating of equal-ness between [0 - s1.length()]
+extern unsigned int RateCompareString(const AString & s1, const AString & s2 );
+
/// Replaces *each* occurence of iNeedle in iHayStack with iReplaceWith
extern void ReplaceString(AString & iHayStack, const AString & iNeedle, const AString & iReplaceWith);