diff options
author | Mattes D <github@xoft.cz> | 2014-05-08 20:17:31 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-05-08 20:17:31 +0200 |
commit | ccf44f18d1258e7b75db36afdc39bc816f7c78fe (patch) | |
tree | 7a5a436db251e032af712374830d394753fccc83 /src/StringUtils.h | |
parent | cNetherFortGen uses cGridStructGen. (diff) | |
parent | Fixed MSVC 64-bit build warnings. (diff) | |
download | cuberite-ccf44f18d1258e7b75db36afdc39bc816f7c78fe.tar cuberite-ccf44f18d1258e7b75db36afdc39bc816f7c78fe.tar.gz cuberite-ccf44f18d1258e7b75db36afdc39bc816f7c78fe.tar.bz2 cuberite-ccf44f18d1258e7b75db36afdc39bc816f7c78fe.tar.lz cuberite-ccf44f18d1258e7b75db36afdc39bc816f7c78fe.tar.xz cuberite-ccf44f18d1258e7b75db36afdc39bc816f7c78fe.tar.zst cuberite-ccf44f18d1258e7b75db36afdc39bc816f7c78fe.zip |
Diffstat (limited to 'src/StringUtils.h')
-rw-r--r-- | src/StringUtils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StringUtils.h b/src/StringUtils.h index b69e47d3c..caad85aef 100644 --- a/src/StringUtils.h +++ b/src/StringUtils.h @@ -52,13 +52,13 @@ extern AString & StrToLower(AString & s); extern int NoCaseCompare(const AString & s1, const AString & s2); // tolua_export /// 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 ); +extern size_t 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); // tolua_export /// Converts a stream of BE shorts into UTF-8 string; returns a ref to a_UTF8 -extern AString & RawBEToUTF8(const char * a_RawData, int a_NumShorts, AString & a_UTF8); +extern AString & RawBEToUTF8(const char * a_RawData, size_t a_NumShorts, AString & a_UTF8); /// Converts a UTF-8 string into a UTF-16 BE string, packing that back into AString; return a ref to a_UTF16 extern AString & UTF8ToRawBEUTF16(const char * a_UTF8, size_t a_UTF8Length, AString & a_UTF16); |