Daniel Lemire
feb1e7feb6
work on the ondemand iterators ( #2590 )
...
* work on the ondemand iterators
* guarding two SIMDJSON_ASSUME
* simplify following @jkeiser's comment
* adding safety rails to the iterators
* silencing a warning.
* updating the amalgamation files
2026-01-17 21:15:18 -05:00
Daniel Lemire
7bf82b02d5
this completes the extra_into work.
2025-09-26 21:00:46 -04:00
Daniel Lemire
3bb2f0a186
Return a better error when a user tries to cast a document that has already been accessed to a value ( #2085 )
...
* Fix.
* adding a test, cleaning some comments, adding documentation
* Correcting the JSON input.
* adding another test
2023-11-26 14:13:05 -05:00
Daniel Lemire
cfd337bb50
This PR adds an 'at_end()' method. ( #1978 )
...
* This PR adds an 'at_end()' method.
* Adding 1111 }
* Tweaking test.
2023-03-30 10:47:13 -04:00
Daniel Lemire
185e157e0c
Silencing the stupid compiler warnings.
2023-03-13 16:06:10 -04:00
Daniel Lemire
d62b789cb3
More curly.
2023-03-13 10:49:15 -04:00
Daniel Lemire
db3e813aa6
Verifying and fixing issue 1876 ( #1877 )
...
* Verifying and fixing issue 1876
* Typo
2022-07-28 21:45:54 -04:00
Daniel Lemire
35b4a48e99
Fixing issue 1742 ( #1743 )
...
* Fix for issue 1742.
* Some additional tests.
2021-10-27 19:25:23 -04:00
Nicolas Boyer
c9179ad81d
Add count_fields method for objects ( #1712 )
...
* Implement count_elements for object
* Add count_elements() for simdjson_result
* Add count_elements for documents(arrays,objects).
* Add tests for objects.
* Add tests for documents array. Typos.
* Renaming to count_fields() for objects.
* Update doc.
* Apply patch
2021-09-02 16:18:48 -04:00
Daniel Lemire
6bed34ad61
This exposes 'reset' for object and array instances. ( #1696 )
...
* This exposes 'rewind' for object and array instances.
* Putting really_inline back to count_elements()
* Update array.h
* Adding empty array rewind.
* Adds "is_empty" method to arrays.
* More fragmentation.
* Tweaking implementation.
* Fixing issue with get_value() on document instances.
* Changing the name of the new rewind functions to reset.
2021-08-21 10:23:59 -04:00
Daniel Lemire
de4deb8c4e
Makes it possible to cast a document to a value. ( #1690 )
...
* Makes it possible to cast a document to a value.
2021-08-11 20:02:30 -04:00
Daniel Lemire
19902abaf8
Guarding first/second access. ( #1688 )
...
* Guarding first/second access.
* Correcting our own usage.
* Adding more documentation.
2021-08-06 20:25:05 -04:00
Daniel Lemire
5b99a75ae1
count_elements did not like empty arrays. ( #1631 )
...
* count_elements did not like empty arrays.
* Minor cleaning.
* I don't understand.
* More cleaning.
2021-06-24 11:08:13 -04:00
Daniel Lemire
16e8db1f17
Adding 'count_elements' method. ( #1577 )
...
* Adding 'count_elements' method.
* Actually reporting errors.
* removing white space.
* Removing white space again.
* Adding an extra example.
* Prettier.
* Making the functionality more error-proof.
* Avoiding exceptions.
* Various fixes including extending count_elements to value types.
* Various fixes.
* Minor fixes.
* Correcting comment.
* Trimming white spaces.
2021-06-06 17:56:00 -04:00
Daniel Lemire
19c3b1315a
Rewind functionality. ( #1539 )
...
* Rewind functionality.
* Keeping just the document rewind.
2021-06-04 09:22:33 -04:00
Daniel Lemire
1032f70ddf
Verifies and fixes issue 1588 ( #1589 )
...
* Verifies and fix issue 1588
* Removing a trailing space.
2021-05-27 19:35:42 -04:00
John Keiser
9944db6d73
Move json_type to ondemand to prevent target mismatch inline errors
2021-03-02 18:31:17 -08:00
John Keiser
2ed24666b5
Add value.type()
2021-03-02 17:02:50 -08:00
John Keiser
fe726b0f80
Split up ondemand_dom_api_tests for sanitize build times
2021-01-26 19:42:37 -08:00