summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2014-01-07 18:09:57 +0100
committerAlexander Harkness <bearbin@gmail.com>2014-01-07 18:09:57 +0100
commit01fcf2fecb1f65f2f5d120ecea9196d21e91060a (patch)
tree99ccd42afe1a4eadb2633f22057e40af43599400 /src/StringUtils.cpp
parentPlugin messages are received and handed to plugins. (diff)
parentFixed favicons (diff)
downloadcuberite-01fcf2fecb1f65f2f5d120ecea9196d21e91060a.tar
cuberite-01fcf2fecb1f65f2f5d120ecea9196d21e91060a.tar.gz
cuberite-01fcf2fecb1f65f2f5d120ecea9196d21e91060a.tar.bz2
cuberite-01fcf2fecb1f65f2f5d120ecea9196d21e91060a.tar.lz
cuberite-01fcf2fecb1f65f2f5d120ecea9196d21e91060a.tar.xz
cuberite-01fcf2fecb1f65f2f5d120ecea9196d21e91060a.tar.zst
cuberite-01fcf2fecb1f65f2f5d120ecea9196d21e91060a.zip
Diffstat (limited to '')
-rw-r--r--src/StringUtils.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp
index e6deb0705..5d16616c5 100644
--- a/src/StringUtils.cpp
+++ b/src/StringUtils.cpp
@@ -759,7 +759,8 @@ AString Base64Decode(const AString & a_Base64String)
}
}
res.resize(o >> 3);
- return res;}
+ return res;
+}
@@ -774,7 +775,7 @@ AString Base64Encode(const AString & a_Input)
'w','x','y','z','0','1','2','3','4','5','6','7','8','9','+','/'
};
- std::string output;
+ AString output;
output.resize(((a_Input.size() + 2) / 3) * 4);
size_t output_index = 0;
@@ -804,7 +805,7 @@ AString Base64Encode(const AString & a_Input)
output[output_index++] = '=';
}
- assert(output_index == output.size());
+ ASSERT(output_index == output.size());
return output;
}