Commit Graph

40 Commits

Author SHA1 Message Date
Benoit Blanchon
1b66a217bf Replace ARDUINOJSON_NAMESPACE with an inline namespace (#1820) 2023-02-14 10:04:48 +01:00
Benoit Blanchon
ac8e5f01db Clang-Format: set AllowShortLoopsOnASingleLine to false 2022-12-24 15:48:00 +01:00
Benoit Blanchon
de725e0a4e Add documentation to most public symbols 2022-12-21 19:20:51 +01:00
Benoit Blanchon
b8eff868e6 Rename String to JsonString 2022-12-19 14:41:43 +01:00
Benoit Blanchon
ac14f29e6c Move definitions of JSON_ARRAY_SIZE() and JSON_OBJECT_SIZE() 2022-12-05 21:00:24 +01:00
Benoit Blanchon
057956225c Add namespace StringStoragePolicy 2022-10-26 10:41:42 +02:00
Benoit Blanchon
b27990f780 Attach copy policy to string adapters 2022-10-26 10:37:18 +02:00
Benoit Blanchon
973858b835 Remove unused CopiedString in MemoryPool 2022-01-13 16:10:42 +01:00
Benoit Blanchon
af18994deb Update copyright notice 2022-01-01 10:01:05 +01:00
Benoit Blanchon
ca24ed48f5 Separate string adapter from storage policy 2021-12-07 16:08:44 +01:00
Benoit Blanchon
be70f6ddd7 Support NUL inside string values (issue #1646) 2021-12-07 16:08:44 +01:00
Benoit Blanchon
a27398e445 Check for NUL terminator in MemoryPool::findString() 2021-11-24 19:06:49 +01:00
Benoit Blanchon
43b2e2e774 Append terminator in saveStringFromFreeZone() 2021-11-24 19:06:49 +01:00
Benoit Blanchon
6632fa8da1 Removed StringAdapter::equals() 2021-07-27 14:16:39 +02:00
Benoit Blanchon
eab5ae2f07 Simplified string adapters 2021-06-16 21:08:05 +02:00
Benoit Blanchon
a24edac5a9 clang-tidy: muted "use of memory after it is freed" in MemoryPool 2021-06-04 11:37:07 +02:00
Benoit Blanchon
d5d2209d09 Added "https://" prefix to all URLs so they are clickable in VS Code 2021-03-29 19:35:25 +02:00
Benoit Blanchon
97b7161d78 Update copyright notice for 2021 2021-01-25 09:14:15 +01:00
Benoit Blanchon
8d37939086 Added JsonDocument::overflowed() (closes #1358) 2020-09-05 13:44:40 +02:00
Benoit Blanchon
f448e805e9 Removed dead code 2020-08-25 14:36:14 +02:00
Benoit Blanchon
764ff2cd53 Added string deduplication (closes #1303) 2020-07-21 20:15:31 +02:00
Benoit Blanchon
1600d39693 Refactored StringBuilder into StringStorage 2020-07-11 17:51:45 +02:00
Benoit Blanchon
04c59985a1 Inverted dependency between MemoryPool and string adapters.
Inserted a null after each raw string in the pool.
2020-07-08 09:38:27 +02:00
Benoit Blanchon
0814fc185f Added a line-break after each "if" to get more accurate coverage report 2020-02-16 15:05:23 +01:00
Benoit Blanchon
66b12da4e7 Added DeserializationOption::Filter (closes #959) 2020-02-12 17:22:42 +01:00
Benoit Blanchon
f9cfea244a Updated copyright notice 2020-01-09 15:48:38 +01:00
Benoit Blanchon
062c1c13b5 Added BasicJsonDocument::shrinkToFit() 2019-11-07 15:40:20 +01:00
Benoit Blanchon
fcbec6eb6d Use absolute instead of relative includes (fixes #1072) 2019-08-26 11:57:57 +02:00
Benoit Blanchon
f3265d2111 Fixed warning "cast-align" (issue #914) 2019-03-01 09:15:43 +01:00
Benoit Blanchon
c3f71c1a99 Updated copyright year to 2019 2019-02-15 13:32:04 +01:00
Benoit Blanchon
b77b203935 Extracted VariantData and CollectionData classes 2018-12-07 09:16:58 +01:00
Benoit Blanchon
aaf0d5c3c5 Renamed and moved internal files 2018-11-30 17:53:54 +01:00
Benoit Blanchon
a60162ba76 Removed the indirection via StringSlot 2018-11-30 14:27:35 +01:00
Benoit Blanchon
45f4e5ac20 Restored the monotonic allocator 2018-11-30 14:27:33 +01:00
Benoit Blanchon
2bd280df80 Removed the automatic expansion of DynamicJsonDocument 2018-11-16 10:26:59 +01:00
Benoit Blanchon
f375459d53 JsonArray::remove() and JsonObject::remove() now release the memory of strings 2018-11-09 18:20:57 +01:00
Benoit Blanchon
d8d939660b JsonArray::remove() and JsonObject::remove() now release the memory of the variant 2018-10-19 19:40:21 +02:00
Benoit Blanchon
ae089dcff7 Merged the two StringBuilder classes into one 2018-10-18 17:54:33 +02:00
Benoit Blanchon
527dc19794 Allow mixed configuration in compilation units (issue #809) 2018-10-02 16:54:05 +02:00
Benoit Blanchon
2998a55f0b Renamed JsonBuffer to MemoryPool 2018-09-03 16:14:21 +02:00