| 157 | } |
| 158 | |
| 159 | static inline bool IsSpaceCharacterUnicode(uint32_t codepoint) { |
| 160 | auto property = utf8proc_get_property(codepoint); |
| 161 | return HasAnyUnicodeGeneralCategory(codepoint, UTF8PROC_CATEGORY_ZS) || |
| 162 | property->bidi_class == UTF8PROC_BIDI_CLASS_WS || |
| 163 | property->bidi_class == UTF8PROC_BIDI_CLASS_B || |
| 164 | property->bidi_class == UTF8PROC_BIDI_CLASS_S; |
| 165 | } |
| 166 | |
| 167 | static inline bool IsPrintableCharacterUnicode(uint32_t codepoint) { |
| 168 | uint32_t general_category = utf8proc_category(codepoint); |
no test coverage detected