summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-09-27 23:13:37 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-09-27 23:13:37 +0200
commit1f8ee70d55d0d076583e14329ca09377c41b12e0 (patch)
treeb9d021314c75e76c24895f3c2cc2b27744a9c900 /src/StringUtils.h
parentMerge remote-tracking branch 'origin/master' into endofsupport (diff)
downloadcuberite-1f8ee70d55d0d076583e14329ca09377c41b12e0.tar
cuberite-1f8ee70d55d0d076583e14329ca09377c41b12e0.tar.gz
cuberite-1f8ee70d55d0d076583e14329ca09377c41b12e0.tar.bz2
cuberite-1f8ee70d55d0d076583e14329ca09377c41b12e0.tar.lz
cuberite-1f8ee70d55d0d076583e14329ca09377c41b12e0.tar.xz
cuberite-1f8ee70d55d0d076583e14329ca09377c41b12e0.tar.zst
cuberite-1f8ee70d55d0d076583e14329ca09377c41b12e0.zip
Diffstat (limited to '')
-rw-r--r--src/StringUtils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StringUtils.h b/src/StringUtils.h
index a76894d05..159e8ecac 100644
--- a/src/StringUtils.h
+++ b/src/StringUtils.h
@@ -66,8 +66,8 @@ extern void ReplaceString(AString & iHayStack, const AString & iNeedle, const AS
/// Converts a stream of BE shorts into UTF-8 string; returns a ref to 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);
+/// Converts a UTF-8 string into a UTF-16 BE string; returns a ref to a_UTF16
+extern AString UTF8ToRawBEUTF16(const char * a_UTF8, size_t a_UTF8Length);
/// Creates a nicely formatted HEX dump of the given memory block. Max a_BytesPerLine is 120
extern AString & CreateHexDump(AString & a_Out, const void * a_Data, size_t a_Size, size_t a_BytesPerLine);