Home | History | Annotate | Download | only in runtime

Lines Matching refs:utf8

27 size_t CountModifiedUtf8Chars(const char* utf8) {
28 return CountModifiedUtf8Chars(utf8, strlen(utf8));
32 * This does not validate UTF8 rules (nor did older code). But it gets the right answer
46 size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count) {
47 DCHECK_LE(byte_count, strlen(utf8));
49 const char* end = utf8 + byte_count;
50 for (; utf8 < end; ++utf8) {
51 int ic = *utf8;
58 utf8++;
63 utf8++;
71 utf8++;
181 int32_t ComputeUtf16HashFromModifiedUtf8(const char* utf8, size_t utf16_length) {
184 const uint32_t pair = GetUtf16FromUtf8(&utf8);
206 int CompareModifiedUtf8ToUtf16AsCodePointValues(const char* utf8, const uint16_t* utf16,
209 if (*utf8 == '\0') {
215 const uint32_t pair = GetUtf16FromUtf8(&utf8);