Lines Matching refs:IsValidUTF8
32 TEST(Utf8Test, IsValidUTF8) { in TEST() argument
33 EXPECT_TRUE(IsValidUTF8("1234hello", 13)); in TEST()
34 EXPECT_TRUE(IsValidUTF8("\u304A\u00B0\u106B", 8)); in TEST()
35 EXPECT_TRUE(IsValidUTF8("this is a test", 26)); in TEST()
36 EXPECT_TRUE(IsValidUTF8("\xf0\x9f\x98\x8b", 4)); in TEST()
38 EXPECT_TRUE(IsValidUTF8("\xf0\x90\x80\x80", 4)); in TEST()
40 EXPECT_FALSE(IsValidUTF8("\xf0\x9f", 2)); in TEST()
42 EXPECT_FALSE(IsValidUTF8("\xf0\x9f\x98\x8b\x8b", 5)); in TEST()
44 EXPECT_FALSE(IsValidUTF8("\xf0\x9f\x98\x61\x61", 5)); in TEST()
46 EXPECT_FALSE(IsValidUTF8("\xc0\x81", 2)); in TEST()
48 EXPECT_FALSE(IsValidUTF8("\xf0\x8a\x85\x8f", 4)); in TEST()