Lines Matching refs:str
26 android::String8 str("hello"); in TEST_F() local
27 ASSERT_TRUE(StringUtil::compare(str, "hello") == 0); in TEST_F()
28 ASSERT_TRUE(StringUtil::compare(str, "hi") != 0); in TEST_F()
32 android::String8 str("hello there"); in TEST_F() local
34 android::String8 sub1 = StringUtil::substr(str, 0, 5); in TEST_F()
37 android::String8 sub2 = StringUtil::substr(str, 10, 5); in TEST_F()
40 android::String8 sub3 = StringUtil::substr(str, 6, 5); in TEST_F()
43 android::String8 sub4 = StringUtil::substr(str, 100, 5); in TEST_F()
48 android::String8 str("hello there"); in TEST_F() local
49 ASSERT_TRUE(StringUtil::endsWith(str, "there")); in TEST_F()
50 ASSERT_TRUE(StringUtil::endsWith(str, "hello there")); in TEST_F()
51 ASSERT_TRUE(!StringUtil::endsWith(str, "not there")); in TEST_F()
55 android::String8 str("hello:there:break:this:"); in TEST_F() local
56 std::vector<android::String8>* tokens = StringUtil::split(str, ':'); in TEST_F()