2003-09-30 17:47:41 +00:00
|
|
|
.TH ISALPHARUNE 3
|
|
|
|
.SH NAME
|
|
|
|
isalpharune, islowerrune, isspacerune, istitlerune, isupperrune, tolowerrune, totitlerune, toupperrune \- Unicode character classes and cases
|
|
|
|
.SH SYNOPSIS
|
2004-04-10 18:53:55 +00:00
|
|
|
.B #include <u.h>
|
|
|
|
.br
|
|
|
|
.B #include <libc.h>
|
2003-09-30 17:47:41 +00:00
|
|
|
.PP
|
|
|
|
.B
|
|
|
|
int isalpharune(Rune c)
|
|
|
|
.PP
|
|
|
|
.B
|
|
|
|
int islowerrune(Rune c)
|
|
|
|
.PP
|
|
|
|
.B
|
|
|
|
int isspacerune(Rune c)
|
|
|
|
.PP
|
|
|
|
.B
|
|
|
|
int istitlerune(Rune c)
|
|
|
|
.PP
|
|
|
|
.B
|
|
|
|
int isupperrune(Rune c)
|
|
|
|
.PP
|
|
|
|
.B
|
|
|
|
Rune tolowerrune(Rune c)
|
|
|
|
.PP
|
|
|
|
.B
|
|
|
|
Rune totitlerune(Rune c)
|
|
|
|
.PP
|
|
|
|
.B
|
|
|
|
Rune toupperrune(Rune c)
|
|
|
|
.SH DESCRIPTION
|
|
|
|
These routines examine and operate on Unicode characters,
|
|
|
|
in particular a subset of their properties as defined in the Unicode standard.
|
|
|
|
Unicode defines some characters as alphabetic and specifies three cases:
|
|
|
|
upper, lower, and title.
|
|
|
|
Analogously to
|
2020-08-16 00:07:38 +00:00
|
|
|
.MR isalpha (3)
|
2003-09-30 17:47:41 +00:00
|
|
|
for
|
|
|
|
.SM ASCII\c
|
|
|
|
,
|
|
|
|
these routines
|
|
|
|
test types and modify cases for Unicode characters.
|
|
|
|
The names are self-explanatory.
|
|
|
|
.PP
|
|
|
|
The case-conversion routines return the character unchanged if it has no case.
|
2004-04-10 18:53:55 +00:00
|
|
|
.SH SOURCE
|
2005-01-11 17:37:33 +00:00
|
|
|
.B \*9/src/lib9/utf/runetype.c
|
2003-09-30 17:47:41 +00:00
|
|
|
.SH "SEE ALSO
|
2005-01-03 06:40:20 +00:00
|
|
|
.IR isalpha (3) ,
|
2003-09-30 17:47:41 +00:00
|
|
|
.IR "The Unicode Standard" .
|