Bo Anderson
33610b59eb
Allow some iterators to be used in standard C++ iterator functions ( #2106 )
2024-02-05 17:52:01 -05:00
Bo Anderson
02bee7d1b9
Add load_into_document to simdjson::dom::parser ( #2103 )
2024-01-08 20:30:26 -05:00
Daniel Lemire
2fa729922e
fix for issue 2099 ( #2100 )
...
* fix for issue 2099
* avoid exceptions.
* fix for exception-less code
2023-12-19 12:15:59 -05:00
Daniel Lemire
3251f61c9d
fix for issue 2093 ( #2094 )
2023-12-07 12:42:28 -05: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
a26f664907
removing space
2023-10-30 12:56:26 -04:00
Daniel Lemire
8b2af0473a
skip UTF-8 BOM if present. ( #2079 )
2023-10-30 12:51:02 -04:00
Daniel Lemire
baa7d961ce
Allowing users to write directly to std::optional<std::string> ( #2078 )
...
* Allowing users to write directly to std::optional<std::string>
* better fallback
* do not force the cast to std::string
* missing header
* removing abort
2023-10-27 20:56:12 -04:00
Daniel Lemire
503da5ec83
raw_json() on values
2023-10-27 16:22:22 -04:00
Daniel Lemire
6db330c1a2
Automating string reallocation when it is possible ( #2076 )
...
* Automating string reallocation
* Typo
2023-10-25 19:34:52 -04:00
Daniel Lemire
993ac4b87c
Adding the ability to write directly to an std::string. It is mostly syntaxic sugar ( #2075 )
2023-10-25 19:32:12 -04:00
Momtchil Momtchev
e11ad58aad
add a total order for elements ( #2072 )
2023-10-09 15:41:57 -04:00
Daniel Lemire
ff77ac801e
Additional documentation based on issue 2063 ( #2065 )
...
* Additional documentation based on issue 2063
* Update basics.md
2023-09-11 10:01:35 -04:00
Daniel Lemire
b2e20e04c9
Standard compatibility fixes ( #2053 )
...
* Standard compatibility fixes
* missing commit
* Should work.
* Fix.
* Fix.
* Should work now.
---------
Co-authored-by: Daniel Lemire <dlemire@lemire.me >
2023-08-25 10:18:02 -04:00
Daniel Lemire
e3bd0828d1
Fix for issue 2045. ( #2046 )
...
* Fix for issue 2045.
* Retauring single-header code.
2023-08-02 16:00:45 -04:00
John Keiser
06afe9ecb3
New escape algorithm with significantly less data dependency
2023-08-02 08:28:05 -07:00
John Keiser
a74e87df17
Merge pull request #2026 from Cuda-Chen/pretty-print-for-dom
...
Add pretty print for DOM
2023-07-17 12:38:20 -07:00
Cuda-Chen
cf0551edf5
Add pretty print for DOM
...
Add pretty print for DOM with documentation.
Currently, the indentation is fixed to four spaces.
Close #1329 .
2023-07-08 21:09:57 +08:00
Daniel Lemire
2934892c0b
Improving documentation. ( #2020 )
...
* Improving documentation.
* Fix typo
* Moving the definition.
* [skip ci] typo
2023-06-20 13:51:53 -04:00
Ng Yong Xiang
b399c0165e
Add comma separated value parsing as an option in iterate_many ( #2016 )
...
* Add comma separated value parsing
* Fix failing tests
* Make tests work for exceptions
* Fix test
* Fix try catch making test fail
---------
Co-authored-by: Yong Xiang Ng <yxng@drwholdings.com >
2023-06-15 09:11:14 -04:00
Daniel Lemire
445ae024ba
fix: bug identified by Yagiz Nizipli ( #2019 )
2023-06-15 09:10:13 -04:00
Daniel Lemire
65f9822542
Adding tests for issue 2017 ( #2018 )
2023-06-07 09:57:28 -04:00
Daniel Lemire
85661a2901
Some systems release without NDEBUG set, let us not assert in these cases. ( #2014 )
2023-06-01 16:18:36 -04:00
Daniel Lemire
7db3f97ba8
Adding CXX 20 to CI ( #2005 )
...
* Adding CXX 20 to CI
* side-stepping new CXX 20 guard.
* Going another way
* Saving.
* Explicit.
* Saving...
---------
Co-authored-by: Daniel Lemire <dlemire@lemire.me >
2023-05-26 09:23:02 -04:00
Daniel Lemire
6d92563280
Fixing issue 1943 ( #2006 )
...
* Fixing issue 1943
* Tweaking.
2023-05-23 11:15:22 -04:00
Daniel Lemire
0998233d58
More documentation. ( #2007 )
2023-05-23 11:15:07 -04:00
Ng Yong Xiang
e9d5d5088a
Introduce logging levels for conditional logging and log key for NO_SUCH_FIELD error ( #2004 )
...
* Add info and error logging
* Add tests for error logging
* Add logging for missing field
* Update docs for logging usage
* Fix style and pass by ref for string format args
* Make log_level explicit and simplify get log level from env
* Make log level int32_t
* Format enum class
* Fix ci
* Move enum to header
* Fix compilation for noexception build in test case
* Disable warnings and putenv
---------
Co-authored-by: Yong Xiang Ng <yxng@drwholdings.com >
2023-05-22 12:58:55 -04:00
Daniel Lemire
2a68a32012
Checking OS support for AVX-512 ( #1998 )
...
* Adding support for AVX-512 on macOS.
* Fix.
* Fix.
* Minor fix
* Setting the variable to zero.
* Fixing include
* Checking if the OS supports AVX-512
* Tweaking.
---------
Co-authored-by: Daniel Lemire <dlemire@lemire.me >
2023-05-12 19:25:02 -04:00
Daniel Lemire
21a2ccaeb8
Another fun one
2023-05-05 22:12:59 -04:00
Daniel Lemire
48152a0326
Fix for issue 1981 ( #1982 )
...
* Fix
* Rewording.
* Doing it differently.
2023-04-08 16:11:40 -04:00
Daniel Lemire
b5cf53232c
More documentation.
2023-04-06 10:52:18 -04:00
Daniel Lemire
3c29f40f2f
Trying to verify issue 1979 ( #1980 )
2023-04-04 11:03:37 -04: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
59025bc8b1
Avoiding the issue where doc.get_value().get_object() differs from doc.get_object() in how errors are reported. ( #1975 )
...
* Avoiding the issue where doc.get_value().get_object() differs from doc.get_object() in how errors are reported.
* Minor tweaks
2023-03-24 12:44:18 -04:00
Daniel Lemire
75c6c950e5
Ok.
2023-03-13 21:26:32 -04:00
Daniel Lemire
5ad7698af1
...
2023-03-13 17:07:25 -04:00
Daniel Lemire
f6f359d3eb
Very silly.
2023-03-13 17:05:53 -04:00
Daniel Lemire
185e157e0c
Silencing the stupid compiler warnings.
2023-03-13 16:06:10 -04:00
Daniel Lemire
3f3f6cde7c
Bad compiler
2023-03-13 13:33:20 -04:00
Daniel Lemire
005054916d
Bad compiler
2023-03-13 13:02:01 -04:00
Daniel Lemire
338224849d
Disabling memory sanitizer with one function. Might help with issue 1965 ( #1966 )
...
* Might help with issue 1965
* Fix macro
* Adding test.
* Stupid compiler
* Silly compiler
* Stupid compilers
* Unnecessary fixes
* Update developer-options.cmake
2023-03-13 12:34:47 -04:00
Daniel Lemire
ede9d57f22
Adding tests with _GLIBCXX_ASSERTIONS ( #1969 )
...
* Allowing users to specify -D_GLIBCXX_ASSERTIONS
* Adding CI tests for GLIBCXX_ASSERTIONS
* Adding curly brackets.
2023-03-13 12:32:43 -04:00
Daniel Lemire
7bf33f6c8a
Bad compiler
2023-03-13 12:29:01 -04:00
Daniel Lemire
d62b789cb3
More curly.
2023-03-13 10:49:15 -04:00
Daniel Lemire
33dbd44098
Better way to put -Og in debug mode ( #1967 )
...
* Better way to put -Og in debug mode
* Silly compiler
* Stupid compiler.
* Stupid compiler.
* Silly compiler
2023-03-13 10:11:33 -04:00
Daniel Lemire
e0dcf8adc9
Silly compiler
2023-03-12 20:57:45 -04:00
Daniel Lemire
17a1a8e187
Adding -Og to debug builds. ( #1964 )
...
* Adding -Og to debug builds.
* Stupid compiler.
* bad, bad, bad compiler
2023-03-09 11:14:42 -05:00
Daniel Lemire
25e7f1765a
Various tweaks.
2023-03-09 10:42:23 -05:00
Daniel Lemire
4a587cb898
Adding guards.
2023-03-06 16:04:42 -05:00
Daniel Lemire
d65acbd47b
Tuning documentation.
2023-03-02 09:39:35 -05:00