MCPcopy Create free account
hub / github.com/apache/arrow / Utf8Is2ByteStart

Function Utf8Is2ByteStart

cpp/src/arrow/util/utf8_internal.h:299–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299static inline bool Utf8Is2ByteStart(const uint8_t codeunit) {
300 return (codeunit & 0xE0) == 0xC0; // upper three bits should be 110
301}
302
303static inline bool Utf8Is3ByteStart(const uint8_t codeunit) {
304 return (codeunit & 0xF0) == 0xE0; // upper four bits should be 1110

Callers 1

UTF8DecodeReverseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected