summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-03-27 08:59:21 +0000
committertjr <tjr@FreeBSD.org>2004-03-27 08:59:21 +0000
commit9b0a927d71f3c2807ad2c15a8f8d8aa974ddf4fd (patch)
tree4ce7b6ed2c478560460bb77955b5cf4cf6662662 /lib/libc
parentdeaccb5ae73532e6cd009a132a6ad70930d27227 (diff)
downloadFreeBSD-src-9b0a927d71f3c2807ad2c15a8f8d8aa974ddf4fd.zip
FreeBSD-src-9b0a927d71f3c2807ad2c15a8f8d8aa974ddf4fd.tar.gz
Recognize the "rune" character class in wctype().
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/wctype.313
-rw-r--r--lib/libc/locale/wctype.c1
2 files changed, 8 insertions, 6 deletions
diff --git a/lib/libc/locale/wctype.3 b/lib/libc/locale/wctype.3
index 9ea2b30..6dec7bb 100644
--- a/lib/libc/locale/wctype.3
+++ b/lib/libc/locale/wctype.3
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 3, 2002
+.Dd March 27, 2004
.Dt WCTYPE 3
.Os
.Sh NAME
@@ -48,10 +48,10 @@ may be used as the second argument for calls to
.Fn iswctype .
.Pp
The following character class names are recognised:
-.Bl -column -offset indent ".Li alnum" ".Li cntrl" ".Li phonogram" ".Li print" ".Li special"
-.It Li "alnum cntrl ideogram print special"
-.It Li "alpha digit lower punct upper"
-.It Li "blank graph phonogram space xdigit"
+.Bl -column -offset indent ".Li alnum" ".Li cntrl" ".Li ideogram" ".Li print" ".Li space"
+.It Li "alnum cntrl ideogram print space xdigit"
+.It Li "alpha digit lower punct special"
+.It Li "blank graph phonogram rune upper"
.El
.Pp
The
@@ -105,8 +105,9 @@ functions conform to
The
.Dq Li ideogram ,
.Dq Li phonogram
+.Dq Li special ,
and
-.Dq Li special
+.Dq Li rune
character classes are extensions.
.Sh HISTORY
The
diff --git a/lib/libc/locale/wctype.c b/lib/libc/locale/wctype.c
index 5646de5..f9aa8dd 100644
--- a/lib/libc/locale/wctype.c
+++ b/lib/libc/locale/wctype.c
@@ -61,6 +61,7 @@ wctype(const char *property)
{ "ideogram", _CTYPE_I }, /* BSD extension */
{ "special", _CTYPE_T }, /* BSD extension */
{ "phonogram", _CTYPE_Q }, /* BSD extension */
+ { "rune", 0xFFFFFF00L }, /* BSD extension */
{ NULL, 0UL }, /* Default */
};
int i;
OpenPOWER on IntegriCloud