Lines Matching refs:utf8
31 size_t CountModifiedUtf8Chars(const char* utf8) { in CountModifiedUtf8Chars() argument
32 return CountModifiedUtf8Chars(utf8, strlen(utf8)); in CountModifiedUtf8Chars()
50 size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count) { in CountModifiedUtf8Chars() argument
51 DCHECK_LE(byte_count, strlen(utf8)); in CountModifiedUtf8Chars()
53 const char* end = utf8 + byte_count; in CountModifiedUtf8Chars()
54 for (; utf8 < end; ++utf8) { in CountModifiedUtf8Chars()
55 int ic = *utf8; in CountModifiedUtf8Chars()
62 utf8++; in CountModifiedUtf8Chars()
67 utf8++; in CountModifiedUtf8Chars()
75 utf8++; in CountModifiedUtf8Chars()
177 int32_t ComputeUtf16HashFromModifiedUtf8(const char* utf8, size_t utf16_length) { in ComputeUtf16HashFromModifiedUtf8() argument
180 const uint32_t pair = GetUtf16FromUtf8(&utf8); in ComputeUtf16HashFromModifiedUtf8()
203 int CompareModifiedUtf8ToUtf16AsCodePointValues(const char* utf8, const uint16_t* utf16, in CompareModifiedUtf8ToUtf16AsCodePointValues() argument
206 if (*utf8 == '\0') { in CompareModifiedUtf8ToUtf16AsCodePointValues()
212 const uint32_t pair = GetUtf16FromUtf8(&utf8); in CompareModifiedUtf8ToUtf16AsCodePointValues()
286 std::string PrintableString(const char* utf8) { in PrintableString() argument
289 const char* p = utf8; in PrintableString()