John Keiser
a1cf588d5f
Fix GCC 7 warning when inlining does its job
2020-12-21 09:19:07 -08:00
John Keiser
e7e09e444c
Use find_field in benchmark
2020-12-20 11:39:56 -08:00
John Keiser
195acc3e45
Add find_field / find_field_unordered to object
2020-12-20 11:39:50 -08:00
John Keiser
b8426584fc
Make field lookup order-insensitive.
2020-12-19 13:57:29 -08:00
John Keiser
d670906ff3
Don't keep a separate at_start boolean in object
2020-12-15 11:29:31 -08:00
John Keiser
f9c6dedca1
Add test for out-of-order parse asserts
2020-12-13 13:39:47 -08:00
John Keiser
73c7b7db3d
Safety: check index of scalar values before use
2020-12-11 11:57:09 -08:00
John Keiser
806cb39103
Clean up some more benchmark/test code
2020-12-07 13:44:58 -08:00
John Keiser
3baba73cf5
Don't call functions in assume (VS2019 Clang doesn't like it)
2020-12-07 11:17:24 -08:00
John Keiser
db6bf15361
Allow all array/object/etc. to be copied
2020-12-06 16:29:53 -08:00
John Keiser
3aa3175378
Add tests for recovering from partial child iteration
2020-12-06 16:19:06 -08:00
John Keiser
4c63956624
Enable object["x"]["y"]
2020-12-06 15:23:52 -08:00
John Keiser
c89647af9e
Make all values use same underlying iterator
2020-12-06 15:23:52 -08:00
John Keiser
1303a88769
Unconditionally track depth
2020-12-06 15:23:52 -08:00
Mikhail Matrosov
b442b29ccf
Mark comparison operators as const ( #1320 )
...
Co-authored-by: Mikhail Matrosov <mikhail.matrosov@aimtech.com >
2020-11-27 14:18:42 -05:00
Paul Dreik
af4db55e66
remove trailing whitespace ( #1284 )
2020-11-03 21:48:09 +01:00
Daniel Lemire
b1444b4dfb
Mostly tiny changes, with one optimization to fallback for number parsing. ( #1265 )
...
* Mostly tiny changes, with one optimization to fallback for number parsing.
* Missed an update.
2020-10-29 11:18:11 -04:00
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
Daniel Lemire
bb2bc98a22
Fix issue https://github.com/simdjson/simdjson/issues/1127 ( #1224 )
2020-10-13 09:18:54 -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
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
a700848bae
Move ondemand implementation to include/
2020-10-04 12:47:30 -07:00