]> git.lizzy.rs Git - plan9front.git/blob - sys/man/2/isalpharune
fix bugs and cleanup cryptsetup code
[plan9front.git] / sys / man / 2 / isalpharune
1 .TH ISALPHARUNE 2
2 .SH NAME
3 isalpharune, islowerrune, isspacerune, istitlerune, isupperrune, isdigitrune, tolowerrune, totitlerune, toupperrune \- Unicode character classes and cases
4 .SH SYNOPSIS
5 .B #include <u.h>
6 .br
7 .B #include <libc.h>
8 .PP
9 .B
10 int isalpharune(Rune c)
11 .PP
12 .B
13 int islowerrune(Rune c)
14 .PP
15 .B
16 int isspacerune(Rune c)
17 .PP
18 .B
19 int istitlerune(Rune c)
20 .PP
21 .B
22 int isupperrune(Rune c)
23 .PP
24 .B
25 int isdigitrune(Rune c)
26 .PP
27 .B
28 Rune tolowerrune(Rune c)
29 .PP
30 .B
31 Rune totitlerune(Rune c)
32 .PP
33 .B
34 Rune toupperrune(Rune c)
35 .SH DESCRIPTION
36 These routines examine and operate on Unicode characters,
37 in particular a subset of their properties as defined in the Unicode standard.
38 Unicode defines some characters as alphabetic and specifies three cases:
39 upper, lower, and title.
40 Analogously to
41 .IR ctype (2)
42 for
43 .SM ASCII\c
44 ,
45 these routines
46 test types and modify cases for Unicode characters.
47 The names are self-explanatory.
48 .PP
49 The case-conversion routines return the character unchanged if it has no case.
50 .SH SOURCE
51 .B /sys/src/libc/port/runetype.c
52 .SH "SEE ALSO
53 .IR ctype (2) ,
54 .IR "The Unicode Standard" .