| 96 | } |
| 97 | |
| 98 | static inline bool IsCasedCharacterUnicode(uint32_t codepoint) { |
| 99 | return HasAnyUnicodeGeneralCategory(codepoint, UTF8PROC_CATEGORY_LU, |
| 100 | UTF8PROC_CATEGORY_LL, UTF8PROC_CATEGORY_LT) || |
| 101 | ((static_cast<uint32_t>(utf8proc_toupper(codepoint)) != codepoint) || |
| 102 | (static_cast<uint32_t>(utf8proc_tolower(codepoint)) != codepoint)); |
| 103 | } |
| 104 | |
| 105 | static inline bool IsLowerCaseCharacterUnicode(uint32_t codepoint) { |
| 106 | // although this trick seems to work for upper case, this is not enough for lower case |
no test coverage detected