Searched refs:JSONString (Results 1 – 3 of 3) sorted by relevance
34 ParseAndTestJSON<JSONString>("\"foo\"", [](JSONString &string_val) { in TEST()63 TestJSON<JSONString>(obj_val.GetObject("key2").get(), in TEST()64 [](JSONString &string_val) { in TEST()76 TestJSON<JSONString>( in TEST()78 [](JSONString &string_val) { EXPECT_EQ(string_val.GetData(), "bar"); }); in TEST()
43 class JSONString : public JSONValue {45 JSONString();46 JSONString(const char *s);47 JSONString(const std::string &s);49 JSONString(const JSONString &s) = delete;50 JSONString &operator=(const JSONString &s) = delete;54 typedef std::shared_ptr<JSONString> SP;62 ~JSONString() override = default;
20 std::string JSONString::json_string_quote_metachars(const std::string &s) { in json_string_quote_metachars()37 JSONString::JSONString() : JSONValue(JSONValue::Kind::String), m_data() {} in JSONString() function in JSONString39 JSONString::JSONString(const char *s) in JSONString() function in JSONString42 JSONString::JSONString(const std::string &s) in JSONString() function in JSONString45 void JSONString::Write(std::ostream &s) { in Write()121 JSONString key(iter->first); in Write()173 if (!JSONString::classof(value_sp.get())) in GetObjectAsString()176 value = static_cast<JSONString *>(value_sp.get())->GetData(); in GetObjectAsString()575 return JSONValue::SP(new JSONString(value)); in ParseJSONValue()