]> git.saurik.com Git - apple/libc.git/blame - locale/FreeBSD/wcwidth.3.patch
Libc-391.tar.gz
[apple/libc.git] / locale / FreeBSD / wcwidth.3.patch
CommitLineData
3d9156a7
A
1--- wcwidth.3.orig Fri Mar 11 19:44:47 2005
2+++ wcwidth.3 Fri Mar 11 19:46:47 2005
3@@ -28,7 +28,8 @@
4 .Dt WCWIDTH 3
5 .Os
6 .Sh NAME
7-.Nm wcwidth
8+.Nm wcwidth ,
9+.Nm wcwidth_l
10 .Nd "number of column positions of a wide-character code"
11 .Sh LIBRARY
12 .Lb libc
13@@ -36,12 +37,23 @@
14 .In wchar.h
15 .Ft int
16 .Fn wcwidth "wchar_t wc"
17+.In xlocale.h
18+.Ft int
19+.Fn wcwidth_l "wchar_t wc" "locale_t loc"
20 .Sh DESCRIPTION
21 The
22 .Fn wcwidth
23 function determines the number of column positions required to
24 display the wide character
25 .Fa wc .
26+.Pp
27+While the
28+.Fn wcwidth
29+function uses the current locale, the
30+.Fn wcwidth_l
31+function may be passed a locale directly. See
32+.Xr xlocale 3
33+for more information.
34 .Sh RETURN VALUES
35 The
36 .Fn wcwidth
37@@ -79,7 +91,8 @@
38 .Ed
39 .Sh SEE ALSO
40 .Xr iswprint 3 ,
41-.Xr wcswidth 3
42+.Xr wcswidth 3 ,
43+.Xr xlocale 3
44 .Sh STANDARDS
45 The
46 .Fn wcwidth