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
2022-04-06fix shadowed variable, take 2Leonid Terenin
2022-04-06fix shadowed variableLeonid Terenin
2021-10-12Resolve issue 1948ardb-uk
Correct instances of >> as they failed compilation.
2021-08-10Use rapidjson internal::SelectIfKyrega
2021-08-10Do not depend on c++11 conditionalKyrega
2021-08-10Added typenameKyrega
2021-08-10Fix RawNumber for longer char typesKyrega
2020-10-09Remove unnecessary wording from BSD license not needed for MIT license ↵Silas S. Brown
(fixes #528)
2020-07-04Improve surrogate handlingLars Klein
Report a single low surrogate as kParseErrorStringUnicodeSurrogateInvalid.
2020-03-11Replace RAPIDJSON_CLZLL with internal clzll (#1660)Jun
RAPIDJSON_CLZLL is defined as macro of __builtin_clzll when using gcc to compile. This introduces two issues: 1. in gcc __builtin_clzll returns int, not uint32_t. 2. __builtin_clzll return is undefined when input x is 0 See: https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html This patch removes RAPIDJSON_CLZLL, merges __builtin_clzll to internal clzll with input check and return value explicit cast. Change-Id: Iac4b355dc5e5b4ed9b3f35a640b6b5537e76f22c Signed-off-by: Jun He <jun.he@arm.com> Co-authored-by: Jun He <jun.he@arm.com>
2020-02-13Allow escaped apostrophe in values (#1639)xpahos
* Allow escaped apostrophe in values * Allow escaped apostrophe in values * Canonical flag name * Add translation for escaped apostrophe Co-authored-by: Milo Yip <miloyip@gmail.com>
2019-07-25Fix ARM NEON under MSVCCharles Milette
2018-07-10Guard against min/max being macros in reader.hChristopher Warrington
Sometimes, particularly when Microsoft's windows.h is included, min/max are defined as macros, interfering with use of std::numeric_limits::min() and the like. To guard against this, the function name is wrapped in an extra set of parenthesis, which inhibits function-style macro expansion. This is a similar commit to 6e38649ec6, but fixes uses of std::numeric_limits added after that commit, like those introduced in 2ea43433e2.
2018-06-15Fix bogus gcc warningabolz
2018-06-15Properly test for overflowabolz
Do not use an approximation to do this. Instead check if the result is Inf.
2018-05-16Prevent int underflow when parsing exponentsFlorin Malita
When parsing negative exponents, the current implementation takes precautions for |exp| to not underflow int. But that is not sufficient: later on [1], |exp + expFrac| is also stored to an int - so we must ensure that the sum stays within int representable values. Update the exp clamping logic to take expFrac into account. [1] https://github.com/Tencent/rapidjson/blob/master/include/rapidjson/reader.h#L1690
2018-05-04Merge pull request #1240 from ksergey/FIX_ReaderMilo Yip
Added const for Reader methods
2018-05-03Added const for Reader methodsSergey Kovalevich
2018-04-09fix compilation on windows with clangZoltan Kovago
2018-02-19Misc. typosluz.paz
Found via `codespell -q 3` in downstream https://github.com/BlueBrain/Brayns
2017-12-21Fix uninitilized member Reader::state_sjaques
2017-04-21Added ARM-Neon support for SIMD.SkipWhitespace*Alejandro Martinez
Change-Id: Iaf210d029758723a7eeb7f28fc10cab7467889a9 Signed-off-by: Jun He <jun.he@arm.com>
2017-03-24Changed error code for invalid special ascii chars, fixed writer testsAlejandro Martinez
2017-03-22Fixed bug on space hexadecimal encodingAlejandro Martinez
2017-02-23Merge branch 'nan-inf-parse-fix' into token-by-token-parsingStilesCrisis
2017-02-23Fix parsing of NaN/InfStilesCrisis
A failed half-consume of “NaN” now returns “value invalid” instead of attempting to consume an “Inf”.
2017-02-07Restored original IterativeParse implementationJohn Stiles
Runs about 1-2% faster (original speed) by running in a tight loop, at the expense of slight code duplication with IterativeParseNext.
2017-02-04Add LIKELY and UNLIKELY hintsStilesCrisis
Doesn’t seem to affect timings in perftest on my machine, but it may help others.
2017-02-04Improve coverage and performanceStilesCrisis
Further improvement to perftest and hoping to make coveralls happy.
2017-02-04Improve performanceStilesCrisis
Slight performance improvement over previous submission
2017-02-03Fix Dev Studio bool-conversion warningStilesCrisis
2017-02-03Token-by-token pull parsingStilesCrisis
Refactored the iterative parser so that users can parse a single JSON element at a time (invoking the handler one time) and then return control to the calling code. Call IterativeParseInit to start, and then call IterativeParseNext to retrieve one JSON element. Use IterativeParseComplete to check for JSON document completion.
2016-12-23Merge pull request #757 from patcheng/feature/fix_clang_warningMilo Yip
added assertion to help suppress clang warnings
2016-10-25Remove empty NumberStream::~NumberStream()Milo Yip
Fix #781
2016-10-18use _mm_cmpistribluehero
2016-09-30When length is 0, the code does nothing, so skip it completely.Patrick Cheng
Previously, os.Push(0) would do nothing as well. But with the newly added assertion, is the stack is empty, it will fail the assertion.
2016-09-30Fix compilation with older GCC versionsAdam Majer
Older GCC versions fail compiling RapidJSON due to a warning include/rapidjson/reader.h:578: error: suggest a space before ';' or explicit braces around empty body in 'while' statement : warnings being treated as errors
2016-06-13Clang doesn't like the C-style casts in nmmintrin.hEli Fidler
2016-05-21Allow options for writing and parsing NaN/InfinityMichael Thon
This adds kWriteNanAndInfFlag to Writer to allow writing of nan, inf and -inf doubles as "NaN", "Infinity" and "-Infinity", respectively, and kParseNanAndInfFlag to Reader to allow parsing of "NaN", "Inf", "Infinity", "-Inf" and "-Infinity". This is part of issue #36, adding optional support for relaxed JSON syntax.
2016-04-17Improve reader coverage by removing a default caseMilo Yip
2016-04-16Move break into same line to make coverage happyMilo Yip
2016-04-06Use single Peek() in SkipWhitespaceMilo Yip
Fix #594
2016-03-29Later clang compilers will warn on float -> double promotion because it can ↵Jarred Nicholls
add precision. In the context of RapidJSON – especially with its float methods on GenericValue – I think this warning holds no water and should be ignored. Trim whitespace off the end of various lines. Added an additional NumberStream specialization that will always perform a TakePush() even when just Take() is called. This supports RawNumber parsing by pushing onto our StackStream particular parts of the number that currently aren't captured because of full precision double parsing, such as the negative sign, scientific number exponents, etc. RawNumber parsing fails with input streams that don't have copy optimization, such as the BasicIStreamWrapper stream. To work around this, instead do the Transcode copy operation by reading from a UTF8 StringStream instead of the original InputStream. Since the NumberStream downcasts all input Ch into chars, we know we're dealing with UTF8/ASCII compatible stack characters during the Transcoding.
2016-03-20Added trailing comma support to iterative parserNicholas Fraser
This also fixes cases where the iterative parser should have produced kParseErrorValueInvalid rather than kParseErrorUnspecifiedSyntaxError when expecting a value (after a colon in an object, after a comma in an array, and at the start of an array.)
2016-03-20Added optional support for trailing commasNicholas Fraser
This adds kParseTrailingCommasFlag to allow a trailing comma at the end of maps and arrays. This is part of issue #36, adding optional support for relaxed JSON syntax.
2016-03-05Removed commented code and added an explanatory comment insteadSergey Kosarevsky
2016-03-04Normalize all line endingsMilo Yip
2016-03-02Added missing static_castSergey Kosarevsky
2016-03-02Don't insert terminating zeroSergey Kosarevsky
2016-02-29Added IterativeParsingReaderHandler::RawNumber()Sergey Kosarevsky