diff options
author | miloyip@gmail.com <miloyip@gmail.com@c5894555-1306-4e8d-425f-1f6f381ee07c> | 2011-12-03 08:15:56 +0400 |
---|---|---|
committer | miloyip@gmail.com <miloyip@gmail.com@c5894555-1306-4e8d-425f-1f6f381ee07c> | 2011-12-03 08:15:56 +0400 |
commit | 8bdcd7422789da5937b43a4bb649c2cffb3ff575 (patch) | |
tree | 615dce13ff38cc08773f2140846b631b5f2009e4 /include/rapidjson/stringbuffer.h | |
parent | c51c90b2a6097d143bee2b4080fda563749288d3 (diff) |
Fixed one decoding/validating bug in UTF8
Fixed one decoding/validating buf in UTF16
Fixed incorrect return type in StringBuffer::GetString()
Added unit tests for encoding/decoding/validating of different encodings
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@46 c5894555-1306-4e8d-425f-1f6f381ee07c
Diffstat (limited to 'include/rapidjson/stringbuffer.h')
-rw-r--r-- | include/rapidjson/stringbuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rapidjson/stringbuffer.h b/include/rapidjson/stringbuffer.h index 506effd9..9a5efd78 100644 --- a/include/rapidjson/stringbuffer.h +++ b/include/rapidjson/stringbuffer.h @@ -23,7 +23,7 @@ struct GenericStringBuffer { void Clear() { stack_.Clear(); }
- const char* GetString() const {
+ const Ch* GetString() const {
// Push and pop a null terminator. This is safe.
*stack_.template Push<Ch>() = '\0';
stack_.template Pop<Ch>(1);
|