Home | History | Annotate | Download | only in base

Lines Matching refs:StringIsUtf8

255   EXPECT_TRUE(StringIsUtf8("", 0));
256 EXPECT_TRUE(StringIsUtf8("\0", 1));
257 EXPECT_TRUE(StringIsUtf8("abc", 3));
258 EXPECT_TRUE(StringIsUtf8("\xc0\x80", 2));
259 EXPECT_TRUE(StringIsUtf8("\xe0\x80\x80", 3));
260 EXPECT_TRUE(StringIsUtf8("\xf0\x80\x80\x80", 4));
261 EXPECT_TRUE(StringIsUtf8("\xf8\x80\x80\x80\x80", 5));
262 EXPECT_TRUE(StringIsUtf8("\xfc\x80\x80\x80\x80\x80", 6));
265 EXPECT_FALSE(StringIsUtf8("\xc0", 1));
266 EXPECT_FALSE(StringIsUtf8("\xe0\x80", 2));
267 EXPECT_FALSE(StringIsUtf8("\xf0\x80\x80", 3));
268 EXPECT_FALSE(StringIsUtf8("\xf8\x80\x80\x80", 4));
269 EXPECT_FALSE(StringIsUtf8("\xfc\x80\x80\x80\x80", 5));
272 EXPECT_FALSE(StringIsUtf8("\xc0\x80\x80", 3));
273 EXPECT_FALSE(StringIsUtf8("\xe0\x80\x80\x80", 4));
274 EXPECT_FALSE(StringIsUtf8("\xf0\x80\x80\x80\x80", 5));
275 EXPECT_FALSE(StringIsUtf8("\xf8\x80\x80\x80\x80\x80", 6));
276 EXPECT_FALSE(StringIsUtf8("\xfc\x80\x80\x80\x80\x80\x80", 7));
279 EXPECT_FALSE(StringIsUtf8("\xfe\x80\x80\x80\x80\x80\x80", 7));
280 EXPECT_FALSE(StringIsUtf8("\xff\x80\x80\x80\x80\x80\x80", 7));
283 EXPECT_FALSE(StringIsUtf8("\xc0\x00", 2));
284 EXPECT_FALSE(StringIsUtf8("\xc0\x40", 2));
285 EXPECT_FALSE(StringIsUtf8("\xc0\xc0", 2));