Searched refs:cstr (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | valuetest.cpp | 589 static const char cstr[] = "World"; // const array in TEST() local 590 Value(cstr).Swap(x); in TEST() 592 EXPECT_EQ(x.GetString(), cstr); in TEST() 593 EXPECT_EQ(x.GetStringLength(), sizeof(cstr)-1); in TEST() 604 const char* pstr = cstr; in TEST() 608 EXPECT_EQ(x.GetString(), cstr); in TEST() 609 EXPECT_EQ(x.GetStringLength(), sizeof(cstr)-1); in TEST() 654 z.SetString(cstr); in TEST() 656 EXPECT_EQ(cstr, z.GetString()); in TEST() 658 z = cstr; in TEST() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/ |
D | tutorial.md | 380 const char * cstr = getenv("USER"); 383 // s.SetString(cstr); // will not compile 384 s.SetString(StringRef(cstr)); // ok, assume safe lifetime, null-terminated 385 s = StringRef(cstr); // shortcut, same as above 386 s.SetString(StringRef(cstr,cstr_len)); // faster, can contain null character 387 s = StringRef(cstr,cstr_len); // shortcut, same as above
|