17 #ifndef UTIL_UTF8_PUBLIC_UNILIB_UTF8_UTILS_H_
18 #define UTIL_UTF8_PUBLIC_UNILIB_UTF8_UTILS_H_
32 return (static_cast<uint32>(c) < 0xD800)
33 || (c >= 0xE000 && c <= 0x10FFFF);
54 return "\1\1\1\1\1\1\1\1\1\1\1\1\2\2\3\4"[(*src & 0xFF) >> 4];
61 return static_cast<signed char>(x) < -0x40;
66 #endif // UTIL_UTF8_PUBLIC_UNILIB_UTF8_UTILS_H_