simdjson/tests
John Keiser 8e7d1a5f09
Separate document state from ParsedJson
This creates a "document" class with only user-facing document state (no parser internals).

- document: user-facing document state
- document::iterator: iterator (equivalent of ParsedJsonIterator)
- document::parser: parser state plus a "docked" document we parse into (equivalent of ParsedJson)

Usage:

```c++
auto doc = simdjson::document::parse(buf, len); // less efficient but simplest
```

```c++
simdjson::document::parser parser; // reusable parser
parser.allocate_capacity(len);
simdjson::document* doc = parser.parse(buf, len); // pointer to doc inside parser
doc = parser.parse(buf2, len); // reuses all buffers and overwrites doc; more efficient
```
2020-02-07 10:02:36 -08:00
..
CMakeLists.txt Making the project tag in simdjson more explicit and disabling LTO (#452) 2020-01-20 10:18:58 -05:00
allparserscheckfile.cpp Style uniformization (#238) 2019-07-30 17:18:10 -04:00
basictests.cpp Separate document state from ParsedJson 2020-02-07 10:02:36 -08:00
integer_tests.cpp Separate document state from ParsedJson 2020-02-07 10:02:36 -08:00
jsoncheck.cpp Being more explicit about EMPTY errors. 2019-12-18 14:39:48 +00:00
jsonstream_test.cpp fix for Issue 467 (#469) 2020-01-29 19:00:18 -05:00
numberparsingcheck.cpp Better tests. 2019-09-02 12:32:44 -04:00
pointercheck.cpp Style uniformization (#238) 2019-07-30 17:18:10 -04:00
singleheadertest.cpp Style uniformization (#238) 2019-07-30 17:18:10 -04:00
stringparsingcheck.cpp Style uniformization (#238) 2019-07-30 17:18:10 -04:00