1Tcl_UniCharIsAlpha(3) Tcl Library Procedures Tcl_UniCharIsAlpha(3)
2
3
4
5______________________________________________________________________________
6
8 Tcl_UniCharIsAlnum, Tcl_UniCharIsAlpha, Tcl_UniCharIsControl,
9 Tcl_UniCharIsDigit, Tcl_UniCharIsGraph, Tcl_UniCharIsLower,
10 Tcl_UniCharIsPrint, Tcl_UniCharIsPunct, Tcl_UniCharIsSpace,
11 Tcl_UniCharIsUpper, Tcl_UniCharIsWordChar - routines for classification
12 of Tcl_UniChar characters
13
15 #include <tcl.h>
16
17 int
18 Tcl_UniCharIsAlnum(ch)
19
20 int
21 Tcl_UniCharIsAlpha(ch)
22
23 int
24 Tcl_UniCharIsControl(ch)
25
26 int
27 Tcl_UniCharIsDigit(ch)
28
29 int
30 Tcl_UniCharIsGraph(ch)
31
32 int
33 Tcl_UniCharIsLower(ch)
34
35 int
36 Tcl_UniCharIsPrint(ch)
37
38 int
39 Tcl_UniCharIsPunct(ch)
40
41 int
42 Tcl_UniCharIsSpace(ch)
43
44 int
45 Tcl_UniCharIsUpper(ch)
46
47 int
48 Tcl_UniCharIsWordChar(ch)
49
51 int ch (in) The Tcl_UniChar to be exam‐
52 ined.
53_________________________________________________________________
54
55
57 All of the routines described examine Tcl_UniChars and return a boolean
58 value. A non-zero return value means that the character does belong to
59 the character class associated with the called routine. The rest of
60 this document just describes the character classes associated with the
61 various routines.
62
63 Note: A Tcl_UniChar is a Unicode character represented as an unsigned,
64 fixed-size quantity.
65
66
68 Tcl_UniCharIsAlnum tests if the character is an alphanumeric Unicode
69 character.
70
71 Tcl_UniCharIsAlpha tests if the character is an alphabetic Unicode
72 character.
73
74 Tcl_UniCharIsControl tests if the character is a Unicode control char‐
75 acter.
76
77 Tcl_UniCharIsDigit tests if the character is a numeric Unicode charac‐
78 ter.
79
80 Tcl_UniCharIsGraph tests if the character is any Unicode print charac‐
81 ter except space.
82
83 Tcl_UniCharIsLower tests if the character is a lowercase Unicode char‐
84 acter.
85
86 Tcl_UniCharIsPrint tests if the character is a Unicode print character.
87
88 Tcl_UniCharIsPunct tests if the character is a Unicode punctuation
89 character.
90
91 Tcl_UniCharIsSpace tests if the character is a whitespace Unicode char‐
92 acter.
93
94 Tcl_UniCharIsUpper tests if the character is an uppercase Unicode char‐
95 acter.
96
97 Tcl_UniCharIsWordChar tests if the character is alphanumeric or a con‐
98 nector punctuation mark.
99
100
102 unicode, classification
103
104
105
106Tcl 8.1 Tcl_UniCharIsAlpha(3)