Commit Graph

51 Commits

Author SHA1 Message Date
Benoit Blanchon
a27398e445 Check for NUL terminator in MemoryPool::findString() 2021-11-24 19:06:49 +01:00
Benoit Blanchon
62f9b94ab1 Add CopiedString and LinkedString 2021-11-24 19:06:49 +01:00
Benoit Blanchon
0429016ff1 Remove IsWriteableString 2021-11-12 15:28:33 +01:00
Benoit Blanchon
acfa174333 Add safe bool idiom in JsonString 2021-10-24 09:58:39 +02:00
Benoit Blanchon
f570fe8c37 Fixed error expected unqualified-id on GCC 11 (fixes #1622) 2021-08-03 11:39:18 +02:00
Benoit Blanchon
6632fa8da1 Removed StringAdapter::equals() 2021-07-27 14:16:39 +02:00
Benoit Blanchon
5790f3c8f7 Refactored string adapters: only one IsString<T> and adaptString() 2021-07-27 14:16:18 +02:00
Benoit Blanchon
f235157466 Added support for std::string_view (closes #1578, closes #1554) 2021-06-17 20:41:04 +02:00
Benoit Blanchon
eab5ae2f07 Simplified string adapters 2021-06-16 21:08:05 +02:00
Benoit Blanchon
4e261068a1 clang-format: set IndentPPDirectives to AfterHash 2021-06-16 21:08:01 +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
f3f44d7812 Renamed StdStringAdapter to StlStringAdapter (internal use only) 2020-10-01 10:01:33 +02:00
Benoit Blanchon
6a878ee444 Fixed error "No such file or directory WString.h" (fixes #1381) 2020-09-16 10:29:20 +02:00
Benoit Blanchon
6841b80466 Added JsonString::operator!= 2020-07-31 14:02:20 +02:00
Benoit Blanchon
764ff2cd53 Added string deduplication (closes #1303) 2020-07-21 20:15:31 +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
2641697e0b Fixed incorrect string comparison on some platforms (fixes #1198) 2020-02-27 11:44:09 +01:00
Benoit Blanchon
85499be855 Added tests for FlashStringAdapter 2020-02-16 17:56:47 +01:00
Benoit Blanchon
e6ddfc7afb Fixed static JsonString not being saved by reference 2020-02-16 17:34:04 +01:00
Benoit Blanchon
58298ec5ba Extracted storage_policy to improve coverage in string adapters 2020-02-16 17:34:04 +01: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
f9cfea244a Updated copyright notice 2020-01-09 15:48:38 +01:00
Benoit Blanchon
8721ac88b1 Reorganized writer classes 2019-10-31 19:27:23 +01:00
Benoit Blanchon
2078871f36 Added missing #include <ArduinoJson/Namespace.hpp> 2019-09-13 12:09:07 +02:00
Benoit Blanchon
fcbec6eb6d Use absolute instead of relative includes (fixes #1072) 2019-08-26 11:57:57 +02:00
Benoit Blanchon
f00dfd7bfe Added fallbacks strlen_P, strncmp_P, strcmp_P and memcpy_P (fixes #1073) 2019-08-21 15:25:54 +02:00
Benoit Blanchon
1e9cc285bb Added support for basic_string<char, traits, allocator> (closes #1045) 2019-08-12 14:21:45 +02:00
Benoit Blanchon
0d339300f9 Added tests for Flash strings (closes #1070) 2019-08-11 11:39:21 +02:00
Benoit Blanchon
ce247a5637 Fixed serialized() not working with Flash strings (fixes #1030) 2019-06-21 08:46:32 +02:00
Benoit Blanchon
630107ae8a Removed implicit conversion in comparison operators (issue #998) 2019-05-23 21:54:42 +02:00
Benoit Blanchon
56bf24e1ec Fixed JsonVariant::isNull() not returning true after set((char*)0) 2019-02-18 16:04:51 +01:00
Benoit Blanchon
c3f71c1a99 Updated copyright year to 2019 2019-02-15 13:32:04 +01:00
Benoit Blanchon
b184af6d00 User can now use a JsonString as a key or a value 2019-01-29 17:00:11 +01:00
Benoit Blanchon
d8a1eec530 Renamed JsonKey to JsonString 2018-12-07 12:08:30 +01:00
Benoit Blanchon
b77b203935 Extracted VariantData and CollectionData classes 2018-12-07 09:16:58 +01:00
Benoit Blanchon
a60162ba76 Removed the indirection via StringSlot 2018-11-30 14:27:35 +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
b0560cbd99 Added JsonArrayConst, JsonObjectConst, and JsonVariantConst 2018-10-12 12:00:27 +02:00
Benoit Blanchon
39e5660c4a Extracted a base class for JsonDocument 2018-10-04 14:59:07 +02:00
Benoit Blanchon
6b985b2d1f Fixed object keys not being duplicated 2018-10-04 11:16:23 +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
Benoit Blanchon
9cbc891816 Implemented reference semantics for JsonVariant 2018-08-21 17:56:16 +02:00
Benoit Blanchon
3f666bd5f0 Fixed exception when using Flash strings as object keys (fixes #784) 2018-07-19 17:22:28 +02:00
Benoit Blanchon
6e4f1dc756 Fixed JsonObject not inserting keys of type String (fixes #782) 2018-07-17 10:24:21 +02:00
Benoit Blanchon
87fa87d87b Renamed function RawJson() to serialized() 2018-07-12 09:08:20 +02:00
Benoit Blanchon
0139354780 Merge branch 'master' into 6.x 2018-06-04 17:46:34 +02:00
Benoit Blanchon
58cb793c96 Reorganized polyfills 2018-05-17 13:46:23 +02:00
Benoit Blanchon
ccb54136a2 Added support for non zero-terminated strings (fixes #704) 2018-05-14 17:12:59 +02:00