Lines Matching refs:utf8
27 size_t CountModifiedUtf8Chars(const char* utf8) { in CountModifiedUtf8Chars() argument
28 return CountModifiedUtf8Chars(utf8, strlen(utf8)); in CountModifiedUtf8Chars()
46 size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count) { in CountModifiedUtf8Chars() argument
47 DCHECK_LE(byte_count, strlen(utf8)); in CountModifiedUtf8Chars()
49 const char* end = utf8 + byte_count; in CountModifiedUtf8Chars()
50 for (; utf8 < end; ++utf8) { in CountModifiedUtf8Chars()
51 int ic = *utf8; in CountModifiedUtf8Chars()
58 utf8++; in CountModifiedUtf8Chars()
63 utf8++; in CountModifiedUtf8Chars()
71 utf8++; in CountModifiedUtf8Chars()
173 int32_t ComputeUtf16HashFromModifiedUtf8(const char* utf8, size_t utf16_length) { in ComputeUtf16HashFromModifiedUtf8() argument
176 const uint32_t pair = GetUtf16FromUtf8(&utf8); in ComputeUtf16HashFromModifiedUtf8()
198 int CompareModifiedUtf8ToUtf16AsCodePointValues(const char* utf8, const uint16_t* utf16, in CompareModifiedUtf8ToUtf16AsCodePointValues() argument
201 if (*utf8 == '\0') { in CompareModifiedUtf8ToUtf16AsCodePointValues()
207 const uint32_t pair = GetUtf16FromUtf8(&utf8); in CompareModifiedUtf8ToUtf16AsCodePointValues()