Cleaned up and fixed some errors in the Json Parser.

This commit is contained in:
2024-08-15 19:28:30 -07:00
parent 2e705627ac
commit c607b20bad
14 changed files with 241 additions and 253 deletions

View File

@@ -20,13 +20,13 @@ namespace ehs
JsonBase** data;
public:
virtual ~JsonArray();
~JsonArray() override;
JsonArray();
JsonArray(const UInt_64 extra);
JsonArray(UInt_64 extra);
JsonArray(const UInt_64 size, const UInt_64 extra);
JsonArray(UInt_64 size, UInt_64 extra);
JsonArray(JsonArray&& ja) noexcept;
@@ -46,9 +46,9 @@ namespace ehs
UInt_64 Size() const;
void Insert(const UInt_64 index, const JsonBase* const value);
void Insert(UInt_64 index, const JsonBase* value);
void Push(const JsonBase* const value);
void Push(const JsonBase* value);
void Push(const JsonBase& value);
@@ -58,20 +58,20 @@ namespace ehs
void Push(const JsonBool& value);
void Push(const bool value);
void Push(bool value);
void Push(const JsonNum& value);
void Push(const float value);
void Push(float value);
void Push(const JsonStr& value);
void Push(const Char_8* value, const UInt_64 size = 0);
void Push(const Char_8* value, UInt_64 size = 0);
void Push(const Str_8& value);
void Pop();
Str_8 ToStr(const UInt_64 level, const bool compact) const;
Str_8 ToStr(UInt_64 level, bool compact) const override;
};
}