Daniel Lemire
4ec44e88c9
adding memory-file mapping to Windows + better doc ( #2676 )
...
* adding memory-file mapping to Windows.
* making memory-file mapping optional under windows, as it is fragile
* removing non-ascii
* saving.
* bumping up
* take 2
2026-04-12 18:12:31 -04:00
Daniel Lemire
769364abb2
simplifying the logic
2026-03-30 20:01:35 -04:00
uwezkhan
307ddd4415
Avoid overflow in padded_string_builder::reserve ( #2654 )
...
Co-authored-by: uwezkhan06 <uwezkhan055@gmail.com >
2026-03-30 10:13:08 -04:00
uwezkhan
9973f7b3a3
Fix fopen usage with string_view ( #2652 )
...
Co-authored-by: uwezkhan06 <uwezkhan055@gmail.com >
2026-03-29 15:54:11 -04:00
Jaël Champagne Gareau
03e8d14eee
fix failing CI and rename misleading workflow name ( #2630 )
2026-03-15 18:40:08 -04:00
Daniel Lemire
019bf1dfe0
adding memory-file mapping ( #2625 )
...
* adding memory-file mapping
* tuning
* init _capacity
* adding missing header
* update doc
2026-03-12 14:36:01 -04:00
Daniel Lemire
2058b47dfe
adding padded string builder ( #2592 )
...
* adding padded string builder
* minor rename
* deleting copy constructor
* typo
* [no-ci] tuning documentation.
2026-01-18 20:18:19 -05:00
Daniel Lemire
a962652ec3
adding documentation.
2025-11-05 11:42:38 -05:00
hiteshmk05
77d73b068a
add: windows wstring support for padded_str ( #2537 )
...
* add: windows wstring support for padded_str
* add: padded_string::load for wstring windows
* fix: extra space
* change: file path
2025-11-05 11:29:30 -05:00
Daniel Lemire
2b9c8977af
using _json for compile-time JSON strings. ( #2536 )
2025-11-03 11:03:21 -05:00
Daniel Lemire
1078eb4034
minor update to the release candidate ( #2394 )
2025-07-16 12:05:09 -04:00
Joyee Cheung
6fb050d04e
fix: fix deprecation from -Wdeprecated-literal-operator ( #2307 )
...
Otherwise simdjson doesn't build with V8's Node.js fork, which
uses -Werror,-Wdeprecated-literal-operator and latest version
of clang.
2024-12-07 11:12:14 -05:00
Daniel Lemire
70a68da941
pedantic viable size
2024-09-06 01:19:47 -04:00
Tunghohin
0e8311f812
reset moved object's viable_size to 0 in the move ctor of padded_string ( #2204 )
2024-06-25 18:06:32 -04:00
Daniel Lemire
aef7111c05
Documenting Unicode support in JSONPath and JSON Pointer ( #2132 )
...
* Documenting our support of JSON Path and JSON Pointer vs. Unicode characters
* using more standard terminology (nitpicking)
* specifying UTF-8 encoding
* allow char8_t when compiling as C++20
* casting
* minor doc corrections
2024-02-15 20:28:38 -05:00
John Keiser
bb54946b78
Disallow including headers from implementation files
2023-07-20 10:01:22 -07:00
John Keiser
cbe562c1d5
Fix header define names for inline files
2023-07-17 13:55:07 -07:00
John Keiser
9a0527c380
Only make editor stuff work in editor
2023-07-14 20:05:05 -07: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
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
Herman Semenov
e65f28e61a
Fixed if condition, Win64 _fseeki64, trivial constructors C++11 ( #1883 )
2022-08-18 14:16:46 -04:00
Andrei Gritsiuk
203c03e90b
resolves #1784 - GCC 11.1.0 and CLang 12.0.0 complain on 'and' operator in padded_string-inl.h ( #1785 )
...
Co-authored-by: Andrei <C:\Users\Andrei\AppData\Roaming\The Bat!>
2022-01-31 11:38:54 -05:00
Ivan Volnov
0b75de12ef
Don't allocate std::string just for padded_string::load() ( #1578 )
...
* Don't allocate std::string just for padded_string::load()
Use std::string_view
* Remove reference from string_view
2021-05-18 12:32:51 -04:00
Daniel Lemire
8b8af6aee5
Making input capacity more robust. ( #1488 )
2021-03-09 09:58:38 -05:00
John Keiser
f0e92e3bdd
Pass "capacity" straight to iterate, support std::string
2021-03-03 12:51:00 -08:00
John Keiser
3db1a214ce
Support user-provided buffers via promise_padded
2021-03-03 12:50:56 -08:00
Tibbel
5613d30e97
partly replacement old-style-cast to c++ *_cast ( #1403 )
...
Co-authored-by: Tibbel <tibbel@ma-gi.de >
2021-01-27 13:33:48 -05:00
Paul Dreik
68a8004518
don't memcpy after failed alloc ( #1315 )
...
Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27675
2020-11-21 07:52:24 +01:00
Paul Dreik
0b39e3a6cf
add fuzzer for padded_string ( #1312 )
...
This also fixes an overflow problem.
2020-11-19 16:51:56 +01:00
Paul Dreik
af4db55e66
remove trailing whitespace ( #1284 )
2020-11-03 21:48:09 +01:00
Paul Dreik
f1b4a54991
add fuzz element ( #1204 )
...
* add definitions for is_number and tie (by lemire)
* add fuzzer for element
* update fuzz documentation
* fix UB in creating an empty padded string
* don't bother null terminating padded_string, it is done by the std::memset already
* refactor fuzz data splitting into a separate class
2020-10-17 05:48:50 +02:00
Daniel Lemire
f410213003
Improve documentation on padding
...
- Improves and clarifies the documentation on padding.
- Use std:: prefix for memcpy, strlen etc.
Related to issues #1175 and #1178
2020-09-23 09:07:14 +02:00
John Keiser
708a56872d
Move inline/* to *-inl.h
2020-08-19 09:09:31 -07:00