| 41 | } |
| 42 | |
| 43 | uint32_t Utf8CharKey(const char* str, size_t charLen) { |
| 44 | uint32_t key = static_cast<uint32_t>(charLen); |
| 45 | for (size_t i = 0; i < charLen; i++) { |
| 46 | key = (key << 8) | static_cast<unsigned char>(str[i]); |
| 47 | } |
| 48 | return key; |
| 49 | } |
| 50 | |
| 51 | } // namespace |
| 52 |
no outgoing calls
no test coverage detected