Age | Commit message (Collapse) | Author |
|
root-level scalar value
This attempts to fix issue #1336.
|
|
Found via `codespell -q 3` in downstream https://github.com/BlueBrain/Brayns
|
|
|
|
Writer flush api
|
|
Missed PrettyWriter in the initial fix for Issue #889
|
|
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.
|
|
Disambiguate by putting the ENABLEIF on the return value instead of in
the argument list.
|
|
Assert in case users attempt to pass a char array to String() or Key()
that is not null terminated; that is not the intended use of the API.
Null terminate your string buffers.
|
|
Same fix as previous commit, to prettywriter
|
|
PrettyWriter EndObject will now also assert if called when a key is
missing its matching value.
|
|
|
|
|
|
|
|
is #defined
Only String() has the std::string overload currently.
|
|
This change adds PrettyWriter::SetFormatOptions with a corresponding
bitfield enum PrettyFormatOptions. This allows options affecting the
format of the PrettyWriter to be set. The first option to be provided
is kFormatSingleLineArray, which instructs the PrettyWriter to write
arrays on a single line, rather than breaking them up onto a line
per element.
|
|
|
|
|
|
Fix #205
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
and additions
|
|
|
|
CrtAllocator
Fixes #118
|
|
|
|
|
|
|
|
Note it redefines RAPIDJSON_ASSERT() to throw exception in unittest and
check for assertion with gtest.
|
|
|
|
Warning push/pop support has been added to GCC in version 4.6.0,
and pragmas to ignore certain warnings are present since 4.2.0.
This patch hides the compiler-specific warning push/pop/disable
pragmas behind a macro-based implementation (currently for MSVC and
clang /GCC.
This avoids warnings, as seen e.g. on GCC 4.4:
../../include/rapidjson/document.h:14: error: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
and earlier versions complaining about unknown pragmas being ignored.
Note: unittest.h and perftest.h need to check for compilers
explicitly, as rapidjson.h is not included there.
|
|
|
|
|
|
As proposed in other patches, it is convenient to pass a user-defined
precision for the (programmatic) output of a single double value
to an OutputStream.
This patch adds an additional overload with an explicit precision
argument to the (Pretty)Writer class templates.
|
|
Writing a double to an OutputStream current prints at most 6 significant
digits (according to the C standard).
The function SetDoublePrecision(), added to the Writer classes
can be used to fluently set the precision, i.e. the number of
significant digits to use for writing the double:
Writer<...> writer(...);
d.Accept(writer.SetDoublePrecision(12));
|
|
|
|
This reverts commit e4ffa48a7563e892047c27f0a50fdeb6f71e6b8b.
|
|
|
|
level.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@67 c5894555-1306-4e8d-425f-1f6f381ee07c
|
|
types in encodings.
Modified API documentation to previous changes.
Rename Stream to InputStream/OutputStream/InputByteStream/OutputByteStream, and stream to is/os according to the context.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@49 c5894555-1306-4e8d-425f-1f6f381ee07c
|
|
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@47 c5894555-1306-4e8d-425f-1f6f381ee07c
|
|
Writer and PrettyWriter automatically calls Flush() at the end of JSON text.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@27 c5894555-1306-4e8d-425f-1f6f381ee07c
|
|
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@2 c5894555-1306-4e8d-425f-1f6f381ee07c
|