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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user