Philipp A. Hartmann
4ef1ff4fba
GenericValue::CopyFrom: add option to force copying of strings
...
Copying the result of an in-situ parsing into another value/document
currently requires that the original buffer - still holding the strings
from the parsing, outlives the destination object as well.
In order to obtain a "full" copy of a GenericValue, this commit adds
an optional flag `copyConstStrings` to `CopyFrom`, which then forces
to take a copy of all embedded strings in the source value.
This solves the problem discussed in #962 .
2017-05-18 19:11:04 +02:00
Milo Yip
0033268c11
Update tutorial.zh-cn.md
...
typo
2017-05-12 17:30:33 +08:00
Milo Yip
56b7216efe
Fix #949 about -Werror=conversion
2017-05-12 10:32:41 +08:00
Milo Yip
f8eb7bae89
Remove -Weverything
...
See #930
2017-05-12 10:32:06 +08:00
Milo Yip
b61bbbfe37
Fix #947 -Weffc++ warning
2017-05-11 16:41:26 +08:00
Milo Yip
67b062b3c6
Merge pull request #946 from hwiesmann/master
...
Add convenience method Key(std::basic_string<Ch> const&) to Writer
2017-05-11 10:04:29 +08:00
Hartwig
568107e178
Add convenience method Key(std::basic_string<Ch> const&) to Writer
2017-05-10 22:56:01 +02:00
Milo Yip
fe2b3603e7
Merge pull request #941 from harrywong/master
...
Add fallthrough attribute to suppress GCC 7.1 warning
2017-05-04 17:23:38 +08:00
Harry Wong
cba45fe9de
Onley apply to GCC 7
2017-05-04 10:32:45 +08:00
Harry Wong
fe19b7b601
Supress implicit fallthrough in GCC
2017-05-04 10:08:48 +08:00
Milo Yip
a13acda972
Merge pull request #937 from bytePro17124/patch-1
...
typo
2017-04-30 13:37:52 +08:00
Matthew Early
4fe02e15f9
typo
2017-04-29 16:07:23 -04:00
Milo Yip
b45c5408d1
Merge pull request #932 from JunHe77/master
...
Added ARM-Neon support for SIMD.SkipWhitespace*
2017-04-24 16:22:14 +08:00
Milo Yip
d2fce92438
Merge pull request #933 from OlegHahm/minor_fixes
...
Minor fixes
2017-04-22 10:58:02 +08:00
Oliver Hahm
885b5cd2f9
common notation of empty if/else case
2017-04-21 14:49:30 +02:00
Oliver Hahm
63423eb6f8
fix return values
2017-04-21 14:49:12 +02:00
Alejandro Martinez
2291258bb8
Added ARM-Neon support for SIMD.SkipWhitespace*
...
Change-Id: Iaf210d029758723a7eeb7f28fc10cab7467889a9
Signed-off-by: Jun He <jun.he@arm.com>
2017-04-21 07:33:17 +00:00
Milo Yip
e6d7247ed9
Merge pull request #924 from lichray/fix-gcc7-warning
...
Fix a non-type template parameter type mismatch
2017-04-17 14:44:08 +08:00
Milo Yip
c6aec19ed8
Merge pull request #930 from pah/feature/cxx11-static_assert
...
RAPIDJSON_STATIC_ASSERT: use C++11 static_assert, if available
2017-04-16 17:48:45 +08:00
Philipp A. Hartmann
f93a29bec2
RAPIDJSON_STATIC_ASSERT: use C++11 static_assert, if available
2017-04-14 20:19:16 +02:00
Zhihao Yuan
ec90588c72
Fix a non-type template parameter type mismatch
...
This issues a warning in gcc7.
2017-04-08 22:51:15 -05:00
Milo Yip
fcd263c61a
Merge pull request #923 from miloyip/issue910_casting
...
Fix #910 incorrect casting
2017-04-07 15:05:47 +08:00
Milo Yip
77f643dc51
Fix #910 incorrect casting
2017-04-07 10:23:30 +08:00
Milo Yip
5d9d0f78b5
Merge pull request #909 from miloyip/issue905_PrettyWriterWriteFlags
...
Fix #905 unable to set writeFlags for PrettyWriter
2017-03-27 18:26:17 +08:00
Milo Yip
d88be8ef16
Fix #905 unable to set writeFlags for PrettyWriter
2017-03-27 14:05:03 +08:00
Milo Yip
b8f0414b9a
Merge pull request #907 from almavi/master
...
Fixed bug on space hexadecimal encoding
2017-03-25 11:10:48 +08:00
Alejandro Martinez
85500e8c8f
Changed error code for invalid special ascii chars, fixed writer tests
2017-03-24 13:37:23 +00:00
Alejandro Martinez
3c6e2cf030
Added unittests for invalid ascii control chars
2017-03-23 10:14:17 +00:00
Alejandro Martinez
da4fd6794c
Fixed bug on space hexadecimal encoding
2017-03-22 10:19:54 +00:00
Milo Yip
430e8d4c9b
Update schema.zh-cn.md
2017-03-20 11:20:04 +08:00
Milo Yip
3f78a026c7
Merge pull request #903 from shadeware/patch-1
...
fix typos in doc code
2017-03-20 11:18:56 +08:00
shadeware
a38104a165
fix typos in doc code
2017-03-19 03:03:36 +03:00
Milo Yip
e5635fb27f
Fix #899
2017-03-16 10:46:48 +08:00
Milo Yip
0bc856a747
Merge pull request #894 from belveder79/master
...
update to create config file which is independent from actual install…
2017-03-16 10:37:07 +08:00
Milo Yip
bba388b4fa
Merge pull request #896 from StilesCrisis/writer-flush-api
...
Writer flush api
2017-03-16 10:36:25 +08:00
Milo Yip
465fab45c1
Merge pull request #897 from StilesCrisis/issue-889-pretty-writer
...
Issue 889 pretty writer
2017-03-16 10:35:26 +08:00
John Stiles
d5d18cf694
Fix template length optimization issue in PrettyWriter
...
Missed PrettyWriter in the initial fix for Issue #889
2017-03-14 23:48:41 -07:00
John Stiles
31c6c50ac6
Provide a Flush() API within Writer
...
This is helpful if you’re writing code that needs to control flush
behavior and you don’t want to pass around your buffer object to each
handler function alongside the writer. Seems like an easy convenience
to add.
2017-03-14 23:28:59 -07:00
John Stiles
c7703f8313
Merge branch 'lookahead-parser-improvements' into writer-flush-api
2017-03-14 23:23:18 -07:00
John Stiles
5b593bba19
Merge pull request #2 from miloyip/master
...
Merge back
2017-03-14 15:41:53 -07:00
Clemens Arth
b91c515afe
update to create config file which is independent from actual install location
2017-03-14 10:27:36 +01:00
John Stiles
f0c108b5c9
Remove all switch
2017-03-13 07:53:37 -07:00
John Stiles
6723e3296a
Initialize v_ to placate GCC
...
v_ has a value assigned to it as part of ParseNext() which happens in
the constructor, but that’s not soon enough for GCC
2017-03-13 07:43:26 -07:00
John Stiles
bf19c1a0be
Remove switch
...
GCC and Clang cannot agree on what constitutes a good switch statement.
2017-03-13 07:40:51 -07:00
Milo Yip
266870df8e
Merge pull request #890 from StilesCrisis/issue-889
...
Issue 889
2017-03-13 15:41:06 +08:00
John Stiles
e7fd707698
Improve LookaheadParser
...
Fix clang -Wswitch-enum warnings.
Made NextArrayValue() more robust—now handles error state correctly,
will enter error state if an unexpected state is reached.
Made separate states for each value type to simplify getters.
Simplified implementation of skipping arrays and objects.
Skipping an object now works whether you’ve retrieved the key or not.
2017-03-13 00:33:10 -07:00
John Stiles
55f8a32020
Remove broken templatized string length optimization
...
It did not support char arrays.
2017-03-12 23:47:59 -07:00
John Stiles
84a0356608
Add unit test for Issue 889
2017-03-12 23:40:54 -07:00
StilesCrisis
33a9f58509
Merge remote-tracking branch 'miloyip/master'
2017-03-08 23:55:03 -08:00
Milo Yip
5de06bfa37
Merge pull request #882 from StilesCrisis/lookaheadparser
...
Lookahead Parser
2017-03-09 09:32:15 +08:00