| 421 | } |
| 422 | |
| 423 | UTF8PROC_DLLEXPORT int utf8proc_isupper(utf8proc_int32_t c) |
| 424 | { |
| 425 | const utf8proc_property_t *p = utf8proc_get_property(c); |
| 426 | return p->lowercase_seqindex != p->uppercase_seqindex && p->uppercase_seqindex == UINT16_MAX && p->category != UTF8PROC_CATEGORY_LT; |
| 427 | } |
| 428 | |
| 429 | /* return a character width analogous to wcwidth (except portable and |
| 430 | hopefully less buggy than most system wcwidth functions). */ |
no test coverage detected