Lines Matching refs:chars
194 uint32_t ComputeModifiedUtf8Hash(const char* chars) { in ComputeModifiedUtf8Hash() argument
196 while (*chars != '\0') { in ComputeModifiedUtf8Hash()
197 hash = hash * 31 + static_cast<uint8_t>(*chars); in ComputeModifiedUtf8Hash()
198 ++chars; in ComputeModifiedUtf8Hash()
239 size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count) { in CountUtf8Bytes() argument
241 const uint16_t *end = chars + char_count; in CountUtf8Bytes()
242 while (chars < end) { in CountUtf8Bytes()
243 const uint16_t ch = *chars++; in CountUtf8Bytes()
253 if (chars < end) { in CountUtf8Bytes()
254 const uint16_t ch2 = *chars; in CountUtf8Bytes()
259 chars++; in CountUtf8Bytes()