Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-03Wrap all WriteXxx() calls within EndValue(), to ensure a flush after ↵Lele Gaifax
root-level scalar value This attempts to fix issue #1336.
2018-02-19Misc. typosluz.paz
Found via `codespell -q 3` in downstream https://github.com/BlueBrain/Brayns
2017-03-27Fix #905 unable to set writeFlags for PrettyWriterMilo Yip
2017-03-16Merge pull request #896 from StilesCrisis/writer-flush-apiMilo Yip
Writer flush api
2017-03-15Fix template length optimization issue in PrettyWriterJohn Stiles
Missed PrettyWriter in the initial fix for Issue #889
2017-03-15Provide a Flush() API within WriterJohn Stiles
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-05Fix msvc x64 compilation issueJohn Stiles
Disambiguate by putting the ENABLEIF on the return value instead of in the argument list.
2017-03-05Assert that String() and Key() are given null-terminated stringsJohn Stiles
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.
2017-03-05Quoted strings to String() or Key() are auto-sized by templateJohn Stiles
Same fix as previous commit, to prettywriter
2017-02-28Add matching fix for PrettyWriterStilesCrisis
PrettyWriter EndObject will now also assert if called when a key is missing its matching value.
2017-01-24Fix output character type in writersMilo Yip
2016-09-19Move constructor support for PrettyWriterTall??di Mih??ly
2016-09-03Add preconditions in writer and string functionsMilo Yip
2016-07-27Add std::string overload to PrettyWriter::Key() when RAPIDJSON_HAS_STDSTRING ↵Jamie Seward
is #defined Only String() has the std::string overload currently.
2016-03-09PrettyWriter formatting options.Cory Omand
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.
2016-03-04Normalize all line endingsMilo Yip
2016-02-28Added PrettyWriter::RawNumber()Sergey Kosarevsky
2016-02-14Add (Pretty)Writer::RawValue()Milo Yip
Fix #205
2016-02-10Add encoding validation option for Writer/PrettyWriterMilo Yip
2015-12-18Fix clang -WeverythingMilo Yip
2015-04-13Improve coverage for Writer and PrettyWritermiloyip
2015-04-13Add tests for Writer API for RAPIDJSON_HAS_STDSTRINGmiloyip
2015-04-03Change copyright owner and related changes.Milo Yip
2015-02-02Add std::string overload to PrettyWriter when RAPIDJSON_HAS_STDSTRING defined.Drew Noakes
2014-11-06*.h: move to namespace macrosPhilipp A. Hartmann
2014-09-04fix for `Reader::ParseString()` implementation plus some minor code cleanups ↵Kosta
and additions
2014-09-04add `Key()` method to `Writer` and `PrettyWriter`Kosta
2014-08-28Change PrettyWriter Allocator=MemoryPoolAllocator<> to StackAllocator = ↵Milo Yip
CrtAllocator Fixes #118
2014-08-11(Pretty)Writer: drop restriction to object/array rootsPhilipp A. Hartmann
2014-08-11Add license and change indents from tab to space.Milo Yip
2014-08-09Remove double precision settings API in WriterMilo Yip
2014-07-13Fixes #66 by adding Writer::Reset() and multiple root checkMilo Yip
Note it redefines RAPIDJSON_ASSERT() to throw exception in unittest and check for assertion with gtest.
2014-07-10Fixes #59 by adding bool return value for each event handler functionMilo Yip
2014-07-08Add RAPIDJSON_DIAG_* macros to handle compiler warningsPhilipp A. Hartmann
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.
2014-07-06(Pretty)Writer: improve doxygen documentationPhilipp A. Hartmann
2014-07-02Fixes warningsMilo Yip
2014-06-25Writer: add Double(d,precision) for one-shot double outputPhilipp A. Hartmann
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.
2014-06-25Writer: add SetDoublePrecision to control number of significant digitsPhilipp A. Hartmann
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));
2014-06-25Fixed some clang -Weverything warnings.Milo Yip
2014-06-25Revert "Remove some clang -Weverything warnings."Milo Yip
This reverts commit e4ffa48a7563e892047c27f0a50fdeb6f71e6b8b.
2014-06-25Remove some clang -Weverything warnings.Milo Yip
2012-11-13Fixed a lots of vc2008/vs2010 and gcc3/4 warnings with the maximum warning ↵miloyip@gmail.com
level. git-svn-id: https://rapidjson.googlecode.com/svn/trunk@67 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-12-03Added RAPIDJSON_STATIC_ASSERT() and applied it to check size of character ↵miloyip@gmail.com
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
2011-12-03Added transcoding support in Writer and PrettyWritermiloyip@gmail.com
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@47 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-22Added Flush() to concept stream. Add this new member function to all streams.miloyip@gmail.com
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
2011-11-18Initial version (0.1)miloyip@gmail.com
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@2 c5894555-1306-4e8d-425f-1f6f381ee07c