utf8proc_charwidth

Function utf8proc_charwidth 

Source
pub unsafe extern "C" fn utf8proc_charwidth(
    codepoint: utf8proc_int32_t,
) -> c_int
Expand description

Given a codepoint, return a character width analogous to wcwidth(codepoint), except that a width of 0 is returned for non-printable codepoints instead of -1 as in wcwidth.

@note If you want to check for particular types of non-printable characters, (analogous to isprint or iscntrl), use utf8proc_category().