Home
last modified time | relevance | path

Searched refs:GetNumBytesForUTF8Char (Results 1 – 3 of 3) sorted by relevance

/external/libtextclassifier/utils/strings/
Dutf8_test.cc25 TEST(Utf8Test, GetNumBytesForUTF8Char) { in TEST() argument
26 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()
Dutf8.h35 static inline int GetNumBytesForUTF8Char(const char *src) { in GetNumBytesForUTF8Char() function
Dutf8.cc37 const int num_codepoint_bytes = GetNumBytesForUTF8Char(&src[0]); in ValidUTF8CharLength()