|
NAMEunicode_wcwidth, unicode_wcwidth_str - width of a Unicode character string SYNOPSIS#include <courier-unicode.h> int unicode_wcwidth(char32_t c); size_t unicode_wcwidth_str(const char32_t *str); DESCRIPTIONunicode_wcwidth returns 1 for regular Unicode characters, 0 for control characters, and 2 for characters that normally take up the width of two regular characters on a text console. unicode_wcwidth_str adds up unicode_wcwidth of all characters in the null-terminated string and returns the total BUGSThe width of a Unicode character is looked up in the Unicode database, and not your terminal's character set font. Hopefully your terminal's character set font is Unicide-compatible. SEE ALSOcourier-unicode(7), unicode_uc(3), unicode_convert(3), unicode_default_chset(3), unicode_html40ent_lookup(3), unicode_category_lookup(3), unicode_grapheme_break(3), unicode_word_break(3), unicode_line_break(3).
|