Home | History | Annotate | Download | only in json

Lines Matching defs:out

35     std::string out;
36 EscapeJSONString(in_ptr, false, &out);
37 EXPECT_EQ(std::string(cases[i].escaped), out);
38 EXPECT_TRUE(IsStringUTF8(out));
40 out.erase();
41 bool convert_ok = EscapeJSONString(in_str, false, &out);
42 EXPECT_EQ(std::string(cases[i].escaped), out);
43 EXPECT_TRUE(IsStringUTF8(out));
48 EXPECT_TRUE(IsStringUTF8(out));
53 std::string out;
54 EscapeJSONString(in, false, &out);
55 EXPECT_TRUE(IsStringUTF8(out));
60 EXPECT_EQ(out.length() + 2, out_quoted.length());
61 EXPECT_EQ(out_quoted.find(out), 1U);
70 out.clear();
71 EscapeJSONString(in, false, &out);
72 EXPECT_EQ(expected, out);
73 EXPECT_TRUE(IsStringUTF8(out));
94 std::string out;
95 EscapeJSONString(in, false, &out);
96 EXPECT_EQ(std::string(cases[i].escaped), out);
97 EXPECT_TRUE(IsStringUTF8(out));
99 out = GetQuotedJSONString(in);
100 EXPECT_EQ("\"" + std::string(cases[i].escaped) + "\"", out);
101 EXPECT_TRUE(IsStringUTF8(out));
105 std::string out;
106 EscapeJSONString(in, false, &out);
107 EXPECT_TRUE(IsStringUTF8(out));
112 EXPECT_EQ(out.length() + 2, out_quoted.length());
113 EXPECT_EQ(out_quoted.find(out), 1U);
114 EXPECT_TRUE(IsStringUTF8(out));
122 out.clear();
123 EscapeJSONString(in, false, &out);
124 EXPECT_EQ(expected, out);
125 EXPECT_TRUE(IsStringUTF8(out));