diff options
| author | mowgli <[email protected]> | 2022-02-10 16:49:25 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:25 +0300 | 
| commit | 89afbbe4ca0e02e386dd4df08f7945f190dc1b84 (patch) | |
| tree | c4772201af6215d48734691b8796e4cfc77c2ac8 /library/cpp/json/writer/json_value.h | |
| parent | 7510cec1516d17cbc8d7749974e36aa45f547a26 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/json/writer/json_value.h')
| -rw-r--r-- | library/cpp/json/writer/json_value.h | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/library/cpp/json/writer/json_value.h b/library/cpp/json/writer/json_value.h index 3f0f50bc4c8..e625c79eb65 100644 --- a/library/cpp/json/writer/json_value.h +++ b/library/cpp/json/writer/json_value.h @@ -99,12 +99,12 @@ namespace NJson {          void EraseValue(TStringBuf key);          void EraseValue(size_t index); - +           TJsonValue& operator[](size_t idx);          TJsonValue& operator[](const TStringBuf& key);          const TJsonValue& operator[](size_t idx) const noexcept;          const TJsonValue& operator[](const TStringBuf& key) const noexcept; - +           bool GetBoolean() const;          long long GetInteger() const;          unsigned long long GetUInteger() const; @@ -164,7 +164,7 @@ namespace NJson {          bool IsString() const noexcept;          bool IsMap() const noexcept;          bool IsArray() const noexcept; - +           /// @return true if JSON_INTEGER or (JSON_UINTEGER and Value <= Max<long long>)          bool IsInteger() const noexcept; @@ -192,7 +192,7 @@ namespace NJson {          void Load(IInputStream* s);          static const TJsonValue UNDEFINED; - +       private:          EJsonValueType Type = JSON_UNDEFINED;          union TValueUnion { @@ -218,7 +218,7 @@ namespace NJson {              @throw yexception if Back shouldn't be called on the object.           */          void BackChecks() const; -    }; +    };       inline bool GetBoolean(const TJsonValue& jv, size_t index, bool* value) noexcept {          return jv[index].GetBoolean(value); | 
