diff options
author | madmaxoft <github@xoft.cz> | 2014-07-19 15:23:40 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-19 15:23:40 +0200 |
commit | 08748bafe26145cd61a179abd131a9dba6065450 (patch) | |
tree | 3e69eef8ca94d13b565da38b11699af2d4590e02 /src/StringUtils.cpp | |
parent | CheckBasicStyle: Check spaces around commas. (diff) | |
download | cuberite-08748bafe26145cd61a179abd131a9dba6065450.tar cuberite-08748bafe26145cd61a179abd131a9dba6065450.tar.gz cuberite-08748bafe26145cd61a179abd131a9dba6065450.tar.bz2 cuberite-08748bafe26145cd61a179abd131a9dba6065450.tar.lz cuberite-08748bafe26145cd61a179abd131a9dba6065450.tar.xz cuberite-08748bafe26145cd61a179abd131a9dba6065450.tar.zst cuberite-08748bafe26145cd61a179abd131a9dba6065450.zip |
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r-- | src/StringUtils.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp index 9074ac7c2..b0e5a4ffe 100644 --- a/src/StringUtils.cpp +++ b/src/StringUtils.cpp @@ -509,8 +509,9 @@ The fall-through switches in UTF-8 reading code save a temp variable, some decrements & conditionals. The switches are equivalent to the following loop: { - int tmpBytesToRead = extraBytesToRead+1; - do { + int tmpBytesToRead = extraBytesToRead + 1; + do + { ch += *source++; --tmpBytesToRead; if (tmpBytesToRead) ch <<= 6; @@ -784,7 +785,8 @@ AString Base64Decode(const AString & a_Base64String) AString Base64Encode(const AString & a_Input) { - static const char BASE64[64] = { + static const char BASE64[64] = + { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', |