Daniel Lemire
0d6919dd99
Reenable the on-demand tests and allows us to convert a raw string into a C++ string. ( #1232 )
...
* Reenable the on-demand tests and allows us to convert a raw string into a C++ string.
* Fixing a 1-byte buffer overrun.
* More documentation.
* Adding more tests.
* Enabling the new tests
* Committing a nicer example.
* Not yet happy but this should fix our failures.
* Duh.
* Ok. Making it easier to get string_view instances from field instances.
* It is a struct.
* Trying to satisfy VS.
* Adopting John's name.
2020-10-19 20:22:24 -04:00
Paul Dreik
58e7106df1
remove unused function parse_unsigned
2020-10-16 22:17:11 +02:00
Daniel Lemire
bb2bc98a22
Fix issue https://github.com/simdjson/simdjson/issues/1127 ( #1224 )
2020-10-13 09:18:54 -04:00
Daniel Lemire
37e6d1e9c7
new number parsing ( #1222 )
...
* Remove our dependency on strtod_l by bundling our own slow path.
* Ok. Let us drop strtod entirely.
* Trimming down the powers to -342.
* Removing useless line.
* Many more comments.
* Adding some DLL exports.
* Let the gods help those who rely on windows+gcc.
* Marking the subnormals as unlikely. This is pretty much "performance neutral", but it might help just a bit with twitter.json.
2020-10-10 12:47:49 -04:00
John Keiser
676a3d068c
Add non-top-level array iteration test
2020-10-06 11:29:46 -07:00
John Keiser
5533f8d87b
Add object iteration error tests
2020-10-06 11:29:46 -07:00
John Keiser
364ad5529d
Add basic error tests
2020-10-06 11:29:46 -07:00
John Keiser
9088792b0e
Disable value["x"] (unsafe, convert to object first)
2020-10-06 11:29:45 -07:00
John Keiser
00f9bb8a07
Add null tests
2020-10-06 11:29:45 -07:00
John Keiser
a90e1637cb
Add boolean tests
2020-10-06 11:29:45 -07:00
John Keiser
ce09d82fc7
Test strings
2020-10-06 11:29:45 -07:00
John Keiser
5b926b8196
Support array iteration over document
2020-10-06 11:29:45 -07:00
John Keiser
c719ccdb48
Add tests for empty object/array
2020-10-06 11:29:45 -07:00
John Keiser
9f1786aeb1
Add .get(T) to value/document
2020-10-06 11:29:45 -07:00
John Keiser
0bb83e06bc
Fix root number parsing
2020-10-06 11:29:45 -07:00
John Keiser
2ba67c2bc2
[WIP] && and & versions of each operator
2020-10-06 11:29:45 -07:00
John Keiser
cae91983ec
Fix issue with early destruction
2020-10-06 11:29:45 -07:00
John Keiser
c7c1372833
Allow reuse of value to try multiple types
2020-10-06 11:29:45 -07:00
John Keiser
ba02cda55f
Allow direct document iteration
2020-10-06 11:29:45 -07:00
John Keiser
512a94afaa
Move error to json_iterator
2020-10-06 11:29:45 -07:00
John Keiser
88f0dc4726
Add API docs, ensure parser and field methods called with &
2020-10-06 11:29:45 -07:00
John Keiser
8ae7910aba
Namespace documentation
2020-10-06 11:29:45 -07:00
John Keiser
4859cb8528
Add SIMDJSON_ONDEMAND_SAFETY_RAILS
2020-10-06 11:29:45 -07:00
John Keiser
c42b91980b
Fix VC++ forward friend declarations
2020-10-06 11:29:45 -07:00
John Keiser
76aeda6b00
Fix [] on simdjson_result<value> to require temp object
2020-10-04 12:47:30 -07:00
John Keiser
1a0ad6d9c3
Fix bug document.get_xxx()
2020-10-04 12:47:30 -07:00
John Keiser
1e90691013
Add parse_unsigned/parse_integer/parse_double to SKIP_NUMBERPARSING
2020-10-04 12:47:30 -07:00
John Keiser
a700848bae
Move ondemand implementation to include/
2020-10-04 12:47:30 -07:00