Home
last modified time | relevance | path

Searched refs:GetString (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dvaluetest.cpp113 EXPECT_STREQ(x.GetString(),"Hello"); in TEST()
115 y = StringRef(x.GetString(),x.GetStringLength()); in TEST()
117 EXPECT_EQ(y.GetString(),x.GetString()); in TEST()
124 EXPECT_EQ(y.GetString(),mstr); in TEST()
130 EXPECT_STREQ("World", x.GetString()); in TEST()
135 EXPECT_EQ(x.GetString(), mstr); in TEST()
239 EXPECT_STREQ(v1.GetString(), v2.GetString()); in TestCopyFrom()
240 EXPECT_EQ(v1.GetString(), v2.GetString()); // string NOT copied in TestCopyFrom()
245 EXPECT_STREQ(v1.GetString(), v2.GetString()); in TestCopyFrom()
246 EXPECT_NE(v1.GetString(), v2.GetString()); // string copied in TestCopyFrom()
[all …]
Dpointertest.cpp419 EXPECT_STREQ(sources[i], s.GetString()); in TEST()
424 Pointer p2(s2.GetString(), s2.GetSize()); in TEST()
641 EXPECT_STREQ("last", d["foo"][3].GetString()); in TEST()
667 EXPECT_STREQ("Hello", Pointer("/foo/hello").GetWithDefault(d, "Hello", a).GetString()); in TEST()
673 EXPECT_STREQ("World", Pointer("/foo/world").GetWithDefault(d, buffer, a).GetString()); in TEST()
676 EXPECT_STREQ("World", GetValueByPointer(d, "/foo/world")->GetString()); in TEST()
679 EXPECT_STREQ("C++", Pointer("/foo/C++").GetWithDefault(d, std::string("C++"), a).GetString()); in TEST()
693 EXPECT_STREQ("last", d["foo"][3].GetString()); in TEST()
719 EXPECT_STREQ("Hello", Pointer("/foo/hello").GetWithDefault(d, "Hello").GetString()); in TEST()
725 EXPECT_STREQ("World", Pointer("/foo/world").GetWithDefault(d, buffer).GetString()); in TEST()
[all …]
Dstringbuffertest.cpp24 EXPECT_STREQ("", buffer.GetString()); in TEST()
32 EXPECT_STREQ("A", buffer.GetString()); in TEST()
43 EXPECT_STREQ("", buffer.GetString()); in TEST()
67 EXPECT_STREQ("AB", buffer.GetString()); in TEST()
117 EXPECT_STREQ("ABCD", x.GetString()); in TEST()
123 EXPECT_STREQ("ABCD", y.GetString()); in TEST()
129 EXPECT_STREQ("ABCD", z.GetString()); in TEST()
140 EXPECT_STREQ("ABCD", x.GetString()); in TEST()
147 EXPECT_STREQ("ABCD", y.GetString()); in TEST()
Dencodingstest.cpp292 const char* encodedStr = os.GetString(); in TEST()
331 EXPECT_EQ(0, StrCmp(encodedStr, os2.GetString())); in TEST()
344 const UTF16<>::Ch* encodedStr = os.GetString(); in TEST()
357 for (const char* s = utf8os.GetString(); *s; ++s) { in TEST()
391 EXPECT_EQ(0, StrCmp(encodedStr, os2.GetString())); in TEST()
403 const UTF32<>::Ch* encodedStr = os.GetString(); in TEST()
422 EXPECT_EQ(0, StrCmp(encodedStr, os2.GetString())); in TEST()
Dprettywritertest.cpp48 EXPECT_STREQ(kPrettyJson, buffer.GetString()); in TEST()
75 buffer.GetString()); in TEST()
84 EXPECT_STREQ("[\n \"Hello\\n\"\n]", buffer.GetString()); in TEST()
94 EXPECT_STREQ("[\n \"Hello\\n\"\n]", buffer.GetString()); in TEST()
Dwritertest.cpp31 …d\",\"t\":true,\"f\":false,\"n\":null,\"i\":123,\"pi\":3.1416,\"a\":[1,2,3]}", buffer.GetString()); in TEST()
44 EXPECT_STREQ(json, buffer.GetString()); \
92 EXPECT_STREQ("\"Hello\\n\"", buffer.GetString()); in TEST()
120 EXPECT_STREQ(json, buffer.GetString()); in TEST()
134 StringStream s2(buffer.GetString()); in TEST()
137 EXPECT_STREQ(json, buffer2.GetString()); in TEST()
Ddocumenttest.cpp37 EXPECT_STREQ("world", hello.GetString()); in ParseCheck()
133 EXPECT_EQ(0, StrCmp(expected, v.GetString())); in TEST()
153 EXPECT_EQ(0, memcmp(bos.GetString(), bos2.GetString(), bos2.GetSize())); in TEST()
174 EXPECT_EQ(0, StrCmp(expected, v.GetString())); in TEST()
192 EXPECT_EQ(0, memcmp(bos.GetString(), bos2.GetString(), bos2.GetSize())); in TEST()
303 …EXPECT_EQ(0, memcmp(L"Wed Oct 30 17:13:20 +0000 2012", s.GetString(), (s.GetStringLength() + 1) * … in TEST()
Dnamespacetest.cpp57 EXPECT_STREQ(json, buffer.GetString()); in TEST()
62 doc.Parse(buffer.GetString()); in TEST()
68 EXPECT_STREQ(json, buffer.GetString()); in TEST()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/tutorial/
Dtutorial.cpp42 printf("hello = %s\n", document["hello"].GetString()); in main()
48 assert(strcmp("world", hello->value.GetString()) == 0); in main()
86 … printf("Type of member %s is %s\n", itr->name.GetString(), kTypeNames[itr->value.GetType()]); in main()
148 puts(sb.GetString()); in main()
/packages/apps/Test/connectivity/sl4n/utils/
Dcommand_receiver.cpp51 cmd = doc[sl4n::kCmdStr].GetString(); in Call()
53 cmd = doc[sl4n::kMethodStr].GetString(); in Call()
/packages/apps/Test/connectivity/sl4n/facades/test/
Dtest_facade.cpp147 max_string = doc[sl4n::kParamsStr][0].GetString(); in test_string_max_return_wrapper()
185 string_test = doc[sl4n::kParamsStr][0][0][string_member.c_str()].GetString(); in test_specific_param_naming_wrapper()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Drapidjsontest.cpp274 const char* str = s.GetString(); in TEST_F()
287 const char* str = s.GetString(); in TEST_F()
Dmisctest.cpp769 ASSERT_STREQ(buffer, sb.GetString()); in itoa_Writer_StringBufferVerify()
835 ASSERT_STREQ(buffer, sb.GetString()); in itoa64_Writer_StringBufferVerify()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Ddocument.h1473 …const Ch* GetString() const { RAPIDJSON_ASSERT(IsString()); return ((flags_ & kInlineStrFlag) ? da…
1547 …if (!handler.Key(m->name.GetString(), m->name.GetStringLength(), (m->name.flags_ & kCopyFlag) != 0…
1563 return handler.String(GetString(), GetStringLength(), (flags_ & kCopyFlag) != 0);
1746 const Ch* const str1 = GetString();
1747 const Ch* const str2 = rhs.GetString();
2099 SetStringRaw(StringRef(rhs.GetString(), rhs.GetStringLength()), allocator);
Dstringbuffer.h63 const Ch* GetString() const { in GetString() function
/packages/apps/Test/connectivity/sl4n/rapidjson/example/simpledom/
Dsimpledom.cpp27 std::cout << buffer.GetString() << std::endl; in main()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dtutorial.md54 printf("hello = %s\n", document["hello"].GetString());
148 itr->name.GetString(), kTypeNames[itr->value.GetType()]);
169 printf("%s %s\n", itr->value.GetString());
205 In addition to `GetString()`, the `Value` class also contains `GetStringLength()`. Here explains wh…
362 // author.GetString() still contains "Milo Yip" after buffer is destroyed
Dencoding.md105 std::cout << buffer.GetString();
141 const wchar_t* t = target.GetString();
Dstream.md41 …t stream. It allocates a memory buffer for writing the whole JSON. Use `GetString()` to obtain the…
50 const char* output = buffer.GetString();
Dpointer.md211 std::cout << sb.GetString() << std::endl;
/packages/apps/Test/connectivity/sl4n/rapidjson/example/simplewriter/
Dsimplewriter.cpp32 cout << s.GetString() << endl; in main()
/packages/apps/Test/connectivity/sl4n/
Dmain.cpp93 std::string str2 = buffer.GetString(); in SockTest()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/serialize/
Dserialize.cpp154 puts(sb.GetString()); in main()
/packages/apps/Test/connectivity/sl4n/rapidjson/
Dreadme.md118 std::cout << buffer.GetString() << std::endl;
/packages/apps/Test/connectivity/sl4n/facades/bluetooth/
Dbt_binder_facade.cpp257 name = doc[sl4n::kParamsStr][0].GetString(); in bt_binder_set_local_name_wrapper()

12