return a character width analogous to wcwidth (except portable and hopefully less buggy than most system wcwidth functions). */
| 429 | /* return a character width analogous to wcwidth (except portable and |
| 430 | hopefully less buggy than most system wcwidth functions). */ |
| 431 | UTF8PROC_DLLEXPORT int utf8proc_charwidth(utf8proc_int32_t c) { |
| 432 | return utf8proc_get_property(c)->charwidth; |
| 433 | } |
| 434 | |
| 435 | UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_charwidth_ambiguous(utf8proc_int32_t c) { |
| 436 | return utf8proc_get_property(c)->ambiguous_width; |
no test coverage detected