Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
UNICODE_WCWIDTH(3)	     Courier Unicode Library	      UNICODE_WCWIDTH(3)

NAME
     unicode_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);

DESCRIPTION
     unicode_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

BUGS
     The 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 ALSO
     courier-unicode(7),    unicode_uc(3),    unicode_convert(3),    unicode_de-
     fault_chset(3),  unicode_html40ent_lookup(3),   unicode_category_lookup(3),
     unicode_grapheme_break(3), unicode_word_break(3), unicode_line_break(3).

AUTHOR
     Sam Varshavchik
	 Author

Courier Unicode Library 	   04/12/2026		      UNICODE_WCWIDTH(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=unicode_wcwidth_str&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help