fix in SpaceParser when parsing json format: floating point values such as 1.123e+01 where not correctly parsed ('+' character was not correctly parsed)

added to Space: some methods for searching a field with ignoring case:
Space * get_object_field_nc(const wchar_t * field)
Space * get_object_field_nc(const std::wstring & field);
const Space * get_object_field_nc(const wchar_t * field) const;
const Space * get_object_field_nc(const std::wstring & field) const;
This commit is contained in:
2021-04-12 18:49:34 +02:00
parent 5d34db5fcf
commit 297940ff7c
3 changed files with 64 additions and 1 deletions

View File

@@ -470,6 +470,14 @@ public:
// add these getters with std::wstring
// no case, has O(n) complexity
Space * get_object_field_nc(const wchar_t * field);
Space * get_object_field_nc(const std::wstring & field);
const Space * get_object_field_nc(const wchar_t * field) const;
const Space * get_object_field_nc(const std::wstring & field) const;
// remove a field from an object
void remove(const wchar_t * field);
void remove(const std::wstring & field);