- 14 Sep, 2014 1 commit
-
-
Milo Yip authored
-
- 13 Sep, 2014 1 commit
-
-
Milo Yip authored
-
- 12 Sep, 2014 1 commit
-
-
Milo Yip authored
-
- 10 Sep, 2014 3 commits
- 06 Sep, 2014 1 commit
-
-
Milo Yip authored
-
- 05 Sep, 2014 6 commits
- 04 Sep, 2014 11 commits
-
-
Kosta authored
It was a copy-n-paste error for the last argument of `Key()` and `String()`...
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
For more details see: https://github.com/miloyip/rapidjson/issues/132 This commit tries to minimize the required code changes and forwards the `Handler::Key()` calls to `Handler::String()` wherever possible in order to not break existing code; or at least not code deriving from `BaseReaderHandler` when implementing a custom `Handler`.
-
- 03 Sep, 2014 4 commits
- 02 Sep, 2014 3 commits
-
-
miloyip authored
This shall generate best possible precision (if strtod() is correctly implemented). Need more unit tests and performance tests. May add an option for accepting precision error. Otherwise LUT in Pow10() can be reduced.
-
Milo Yip authored
GenericValue: reduce growth factor for array/object reallocations
-
Milo Yip authored
short string optimization
-
- 01 Sep, 2014 9 commits
-
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
-
Kosta authored
The `ShortString` can represent zero-terminated strings up to `MaxSize` chars (excluding the terminating zero) and store a value to determine the length of the contained string in the last character `str[LenPos]` by storing `MaxSize - length` there. If the string to store has the maximal length of `MaxSize` (excluding the terminating zero) then `str[LenPos]` will store `0` and therefore act as the string terminator as well. For getting the string length back from that value just use `MaxSize - str[LenPos]`. This allows to store `11`-chars strings in 32-bit mode and `15`-chars strings in 64-bit mode inline (for `UTF8`-encoded strings).
-
Philipp A. Hartmann authored
Suggested-by: @miloyip
-
Kosta authored
Instead of replicating the functionality of `GetString()` and `GetStringLength()` in `StringEqual()` it now calls these methods instead.
-