Lines Matching full:const
46 static std::unique_ptr<PtJson> Parse(const std::string &data);
49 std::string Stringify() const;
52 bool Add(const char *key, bool value) const;
53 bool Add(const char *key, int32_t value) const;
54 bool Add(const char *key, int64_t value) const;
55 bool Add(const char *key, uint32_t value) const;
56 bool Add(const char *key, double value) const;
57 bool Add(const char *key, const char *value) const;
58 bool Add(const char *key, const std::unique_ptr<PtJson> &value) const;
61 bool Push(bool value) const;
62 bool Push(int32_t value) const;
63 bool Push(int64_t value) const;
64 bool Push(uint32_t value) const;
65 bool Push(double value) const;
66 bool Push(const char *value) const;
67 bool Push(const std::unique_ptr<PtJson> &value) const;
70 bool Remove(const char *key) const;
72 bool Contains(const char *key) const;
74 std::string GetKey() const;
76 cJSON *GetJson() const;
79 bool IsBool() const;
80 bool IsNumber() const;
81 bool IsString() const;
82 bool IsObject() const;
83 bool IsArray() const;
84 bool IsNull() const;
87 bool GetBool(bool defaultValue = false) const;
88 int32_t GetInt(int32_t defaultValue = 0) const;
89 int64_t GetInt64(int64_t defaultValue = 0) const;
90 uint32_t GetUInt(uint32_t defaultValue = 0) const;
91 uint64_t GetUInt64(uint64_t defaultValue = 0) const;
92 double GetDouble(double defaultValue = 0.0) const;
93 std::string GetString() const;
96 int32_t GetSize() const;
97 std::unique_ptr<PtJson> Get(int32_t index) const;
100 Result GetBool(const char *key, bool *value) const;
101 Result GetInt(const char *key, int32_t *value) const;
102 Result GetInt64(const char *key, int64_t *value) const;
103 Result GetUInt(const char *key, uint32_t *value) const;
104 Result GetUInt64(const char *key, uint64_t *value) const;
105 Result GetDouble(const char *key, double *value) const;
106 Result GetString(const char *key, std::string *value) const;
107 Result GetObject(const char *key, std::unique_ptr<PtJson> *value) const;
108 Result GetArray(const char *key, std::unique_ptr<PtJson> *value) const;
109 Result GetAny(const char *key, std::unique_ptr<PtJson> *value) const;