diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-07-07 16:13:43 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-07-07 16:13:43 +0200 |
commit | 0224a4f7fc17400dd100a2333c7bbf9c898426c4 (patch) | |
tree | 5b909dc5b57a6859334591e0c5295547d8e9061f /source/StringUtils.h | |
parent | Improved function names for protocol packet sending; alpha-sorted the function lists (diff) | |
download | cuberite-0224a4f7fc17400dd100a2333c7bbf9c898426c4.tar cuberite-0224a4f7fc17400dd100a2333c7bbf9c898426c4.tar.gz cuberite-0224a4f7fc17400dd100a2333c7bbf9c898426c4.tar.bz2 cuberite-0224a4f7fc17400dd100a2333c7bbf9c898426c4.tar.lz cuberite-0224a4f7fc17400dd100a2333c7bbf9c898426c4.tar.xz cuberite-0224a4f7fc17400dd100a2333c7bbf9c898426c4.tar.zst cuberite-0224a4f7fc17400dd100a2333c7bbf9c898426c4.zip |
Diffstat (limited to '')
-rw-r--r-- | source/StringUtils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/StringUtils.h b/source/StringUtils.h index 995ecab1f..be2fe2359 100644 --- a/source/StringUtils.h +++ b/source/StringUtils.h @@ -66,6 +66,9 @@ extern AString & UTF8ToRawBEUTF16(const char * a_UTF8, size_t a_UTF8Length, AStr /// 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, int a_Size, int a_BytesPerLine); +/// Returns a copy of a_Message with all quotes and backslashes escaped by a backslash +extern AString EscapeString(const AString & a_Message); + // If you have any other string helper functions, declare them here |