GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
UNICODE_WCWIDTH(3) Courier Unicode Library UNICODE_WCWIDTH(3)

unicode_wcwidth, unicode_wcwidth_str - width of a Unicode character string

#include <courier-unicode.h>

int unicode_wcwidth(char32_t c);

size_t unicode_wcwidth_str(const char32_t *str);

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

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.

courier-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).

Sam Varshavchik

Author
01/10/2026 Courier Unicode Library

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.