| 78 | */ |
| 79 | template<typename MemoryType> |
| 80 | int32_t ComputeUtf16Hash(const MemoryType* chars, size_t char_count) { |
| 81 | uint32_t hash = 0; |
| 82 | while (char_count--) { |
| 83 | hash = hash * 31 + *chars++; |
| 84 | } |
| 85 | return static_cast<int32_t>(hash); |
| 86 | } |
| 87 | |
| 88 | int32_t ComputeUtf16HashFromModifiedUtf8(const char* utf8, size_t utf16_length); |
| 89 |
nothing calls this directly
no outgoing calls
no test coverage detected