| 301 | } |
| 302 | |
| 303 | static inline bool Utf8Is3ByteStart(const uint8_t codeunit) { |
| 304 | return (codeunit & 0xF0) == 0xE0; // upper four bits should be 1110 |
| 305 | } |
| 306 | |
| 307 | static inline bool Utf8Is4ByteStart(const uint8_t codeunit) { |
| 308 | return (codeunit & 0xF8) == 0xF0; // upper five bits should be 11110 |