| 193 | } |
| 194 | |
| 195 | uint32_t ComputeModifiedUtf8Hash(const char* chars) { |
| 196 | uint32_t hash = 0; |
| 197 | while (*chars != '\0') { |
| 198 | hash = hash * 31 + *chars++; |
| 199 | } |
| 200 | return static_cast<int32_t>(hash); |
| 201 | } |
| 202 | |
| 203 | int CompareModifiedUtf8ToUtf16AsCodePointValues(const char* utf8, const uint16_t* utf16, |
| 204 | size_t utf16_length) { |
nothing calls this directly
no outgoing calls
no test coverage detected