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
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
Daniel Lemire
13405afd4b
This provides verbose static_assert messages ( #2074 )
...
* This provides verbose static_assert messages
* minor fix
2023-10-20 15:42:18 -04:00
Piotr Rżysko
cc24bb4114
Removed number parsing fallback ( #2056 )
2023-08-29 18:28:21 -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
2ccd5b9c97
Merge pull request #2039 from simdjson/jkeiser/more-headers
...
Disallow including headers from implementation files
2023-07-21 12:09:57 -07:00
Calum McConnell
7013ed98cc
Peek(0) is an error on 32-bit systems, where pointers are indistinguishable from int32_t ( #2040 )
2023-07-21 13:52:53 -04:00
John Keiser
ae9ba2bed2
Rename SIMDJSON_AMALGAMATED to SIMDJSON_CONDITIONAL_INCLUDE
2023-07-20 11:43:19 -07:00
John Keiser
bb54946b78
Disallow including headers from implementation files
2023-07-20 10:01:22 -07:00
John Keiser
e3cac71afe
Enforce that dependencies.h and generic/*.h include the same dependencies.
2023-07-17 16:07:42 -07:00
John Keiser
30437d0ff6
A few header fixes for dom and ondemand
2023-07-17 13:53:50 -07:00
John Keiser
1e97af7dfb
Merge pull request #2031 from simdjson/jkeiser/vscode-green
...
Get headers compiling in editor
2023-07-17 13:07:20 -07:00
John Keiser
9f0710e3ad
Move full_multiplication to <implementation>/numberparsing_defs.h
2023-07-16 22:34:21 -07:00
John Keiser
7540248396
Include simdprune_tables.h in generic implementations
2023-07-16 19:19:10 -07:00
John Keiser
ab09e96de9
Only use amalgamated.h in generic/
2023-07-16 19:18:58 -07:00
John Keiser
efe3d4b7d7
Few more missing headers, make it even stricter
2023-07-15 16:55:27 -07:00
John Keiser
28db262b47
Make SIMDJSON_AMALGAMATED checking much stricter
2023-07-15 16:46:15 -07:00
John Keiser
a442842f0d
Use SIMDJSON_AMALGAMATED (which works in-editor and out) instead of editor-specific tweaks
2023-07-15 14:53:02 -07:00
John Keiser
7dff5fa37c
Include intrin.h from jsoncharutils.h since it's needed
2023-07-14 20:53:47 -07:00
John Keiser
9a0527c380
Only make editor stuff work in editor
2023-07-14 20:05:05 -07:00
John Keiser
bf70cd0ebf
Get headers compiling in editor
2023-07-08 10:47:15 -07:00
yongxiangng
ddb094d550
Move should log into separate if clause
2023-07-08 13:07:25 +08:00
Yong Xiang Ng
975fdda03c
Add fine grain logging
2023-07-07 12:11:27 +08:00
Daniel Lemire
031ee32969
Undoing PR 2004 due to performance concerns. ( #2029 )
...
* Undoing PR 2004 due to performance concerns.
Fixes https://github.com/simdjson/simdjson/issues/2028
Fixes https://github.com/simdjson/simdjson/issues/2021
* Adding final lines.
---------
Co-authored-by: Daniel Lemire <dlemire@lemire.me >
2023-07-06 21:34:14 -04:00
John Keiser
53dad74d8e
Don't put number_type into ondemand
2023-07-05 14:26:23 -07: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
6d92563280
Fixing issue 1943 ( #2006 )
...
* Fixing issue 1943
* Tweaking.
2023-05-23 11:15:22 -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
48152a0326
Fix for issue 1981 ( #1982 )
...
* Fix
* Rewording.
* Doing it differently.
2023-04-08 16:11:40 -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
25e7f1765a
Various tweaks.
2023-03-09 10:42:23 -05:00
Daniel Lemire
37e87f6f99
Adding support for wobbly strings to On Demand and lossy trancoding from escaped (with replacement) ( #1947 )
...
* Adding support for wobbly strings.
* Minor tweak.
* Adopt substitution code point.
* Lossy
* Patching
2023-02-28 22:56:44 -05:00
Daniel Lemire
b9234be80f
complete number_in_string for documents, stringify the version macro and improving trailing content errors ( #1934 )
...
* This completes the '*_in_string' support within documents.
* Minor updates.
* Additional fixes.
2023-01-21 15:29:08 -05:00
Daniel Lemire
0a2563e13e
Testing and fixing log issues. ( #1939 )
...
* Testing and fixing log issues.
* Cleaning it a bit.
2023-01-21 15:28:56 -05:00
Daniel Lemire
f151300a76
Disabling fallback kernel on systems where it is not needed ( #1930 )
...
* Fixing issue 1772
* More cleaning.
* Allow disabling other kernels.
* Minor tweaks.
2023-01-03 09:52:41 -05:00
Daniel Lemire
db08d78ed0
Documents better the type method and makes is_null return an error condition in some instances ( #1909 )
2022-10-06 11:47:40 -04:00
Daniel Lemire
5e6be3ed7a
Minor fix (documentation and safety) regarding max. depth in ondemand. ( #1906 )
2022-10-04 12:24:20 -04:00
Daniel Lemire
b92cbbe280
Fixing issue 1898 ( #1899 )
...
* Fixing issue 1898 Preserve sign for number with underflowing exponent (#1900 )
Before this commit, simdjson parsed "-1e-999" and "-0e-999" and "-1e-342"
as 0.0.
After this commit, those JSON strings get parsed as -0.0.
(https://en.wikipedia.org/wiki/Signed_zero )
The old behavior was inconsistent with the way simdjson parsed "-0.0" as -0.0.
Co-authored-by: Daniel Lemire <daniel@lemire.me >
Co-authored-by: Tyson Andre <tysonandre775@hotmail.com >
2022-10-02 16:25:39 -04:00
sean
d4ac1b51d0
Fix various warnings & if constexpr ( #1888 )
2022-09-27 23:22:47 -04:00
Daniel Lemire
fbb46b99e2
Fixes and verifies issue 1878. ( #1880 )
...
* Fixes and verifies issue 1878.
* Changing how NULL is handled.
* Different design.
2022-08-08 22:00:38 -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
5dbe96da96
We change slightly on development checks are enabled. ( #1869 )
...
* We change slightly on development checks are enabled.
* Removing garbagy code.
2022-07-19 16:40:02 -04:00
Daniel Lemire
40b397a3d4
Fixing issue 1870 ( #1871 )
2022-07-19 15:17:12 -04:00