Searched refs:GetNumBytesForUTF8Char (Results 1 – 3 of 3) sorted by relevance
25 TEST(Utf8Test, GetNumBytesForUTF8Char) { in TEST() argument26 EXPECT_EQ(GetNumBytesForUTF8Char("\x00"), 0); in TEST()27 EXPECT_EQ(GetNumBytesForUTF8Char("h"), 1); in TEST()28 EXPECT_EQ(GetNumBytesForUTF8Char(""), 4); in TEST()29 EXPECT_EQ(GetNumBytesForUTF8Char("㍿"), 3); in TEST()
35 static inline int GetNumBytesForUTF8Char(const char *src) { in GetNumBytesForUTF8Char() function
37 const int num_codepoint_bytes = GetNumBytesForUTF8Char(&src[0]); in ValidUTF8CharLength()