Lines Matching full:const
47 static std::unique_ptr<PtJson> Parse(const std::string &data);
50 std::string Stringify() const;
53 bool Add(const char *key, bool value) const;
54 bool Add(const char *key, int32_t value) const;
55 bool Add(const char *key, int64_t value) const;
56 bool Add(const char *key, uint32_t value) const;
57 bool Add(const char *key, double value) const;
58 bool Add(const char *key, const char *value) const;
59 bool Add(const char *key, const std::unique_ptr<PtJson> &value) const;
62 bool Push(bool value) const;
63 bool Push(int32_t value) const;
64 bool Push(int64_t value) const;
65 bool Push(uint32_t value) const;
66 bool Push(double value) const;
67 bool Push(const char *value) const;
68 bool Push(const std::unique_ptr<PtJson> &value) const;
71 bool Remove(const char *key) const;
73 bool Contains(const char *key) const;
75 std::string GetKey() const;
77 std::vector<std::string> GetKeysArray() const;
79 cJSON *GetJson() const;
82 bool IsBool() const;
83 bool IsNumber() const;
84 bool IsString() const;
85 bool IsObject() const;
86 bool IsArray() const;
87 bool IsNull() const;
90 bool GetBool(bool defaultValue = false) const;
91 int32_t GetInt(int32_t defaultValue = 0) const;
92 int64_t GetInt64(int64_t defaultValue = 0) const;
93 uint32_t GetUInt(uint32_t defaultValue = 0) const;
94 uint64_t GetUInt64(uint64_t defaultValue = 0) const;
95 double GetDouble(double defaultValue = 0.0) const;
96 std::string GetString() const;
99 int32_t GetSize() const;
100 std::unique_ptr<PtJson> Get(int32_t index) const;
103 Result GetBool(const char *key, bool *value) const;
104 Result GetInt(const char *key, int32_t *value) const;
105 Result GetInt64(const char *key, int64_t *value) const;
106 Result GetUInt(const char *key, uint32_t *value) const;
107 Result GetUInt64(const char *key, uint64_t *value) const;
108 Result GetDouble(const char *key, double *value) const;
109 Result GetString(const char *key, std::string *value) const;
110 Result GetObject(const char *key, std::unique_ptr<PtJson> *value) const;
111 Result GetArray(const char *key, std::unique_ptr<PtJson> *value) const;
112 Result GetAny(const char *key, std::unique_ptr<PtJson> *value) const;