| 163 | inline bool IsTrailByte(char x) { return static_cast<signed char>(x) < -0x40; } |
| 164 | |
| 165 | inline bool IsValidCodepoint(char32 c) { |
| 166 | return (static_cast<uint32_t>(c) < 0xD800) || (c >= 0xE000 && c <= 0x10FFFF); |
| 167 | } |
| 168 | |
| 169 | bool IsStructurallyValid(absl::string_view str); |
| 170 |
no outgoing calls