• Home
  • Raw
  • Download

Lines Matching full:const

45     static std::unique_ptr<PtJson> Parse(const std::string &data);
48 std::string Stringify() const;
51 bool Add(const char *key, bool value) const;
52 bool Add(const char *key, int32_t value) const;
53 bool Add(const char *key, int64_t value) const;
54 bool Add(const char *key, double value) const;
55 bool Add(const char *key, const char *value) const;
56 bool Add(const char *key, const std::unique_ptr<PtJson> &value) const;
59 bool Push(bool value) const;
60 bool Push(int32_t value) const;
61 bool Push(int64_t value) const;
62 bool Push(double value) const;
63 bool Push(const char *value) const;
64 bool Push(const std::unique_ptr<PtJson> &value) const;
67 bool Remove(const char *key) const;
69 bool Contains(const char *key) const;
71 std::string GetKey() const;
73 cJSON *GetJson() const;
76 bool IsBool() const;
77 bool IsNumber() const;
78 bool IsString() const;
79 bool IsObject() const;
80 bool IsArray() const;
81 bool IsNull() const;
84 bool GetBool(bool defaultValue = false) const;
85 int32_t GetInt(int32_t defaultValue = 0) const;
86 int64_t GetInt64(int64_t defaultValue = 0) const;
87 double GetDouble(double defaultValue = 0.0) const;
88 std::string GetString() const;
91 int32_t GetSize() const;
92 std::unique_ptr<PtJson> Get(int32_t index) const;
95 Result GetBool(const char *key, bool *value) const;
96 Result GetInt(const char *key, int32_t *value) const;
97 Result GetInt64(const char *key, int64_t *value) const;
98 Result GetDouble(const char *key, double *value) const;
99 Result GetString(const char *key, std::string *value) const;
100 Result GetObject(const char *key, std::unique_ptr<PtJson> *value) const;
101 Result GetArray(const char *key, std::unique_ptr<PtJson> *value) const;
102 Result GetAny(const char *key, std::unique_ptr<PtJson> *value) const;