OSDN Git Service

Please enter the commit message for your changes. Lines starting
[eos/base.git] / util / src / TclTk / tcl8.6.12 / doc / UniCharIsAlpha.3
1 '\"
2 '\" Copyright (c) 1997 Sun Microsystems, Inc.
3 '\"
4 '\" See the file "license.terms" for information on usage and redistribution
5 '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6 '\"
7 .TH Tcl_UniCharIsAlpha 3 "8.1" Tcl "Tcl Library Procedures"
8 .so man.macros
9 .BS
10 .SH NAME
11 Tcl_UniCharIsAlnum, Tcl_UniCharIsAlpha, Tcl_UniCharIsControl, Tcl_UniCharIsDigit, Tcl_UniCharIsGraph, Tcl_UniCharIsLower, Tcl_UniCharIsPrint, Tcl_UniCharIsPunct, Tcl_UniCharIsSpace, Tcl_UniCharIsUpper, Tcl_UniCharIsWordChar \- routines for classification of Tcl_UniChar characters
12 .SH SYNOPSIS
13 .nf
14 \fB#include <tcl.h>\fR
15 .sp
16 int
17 \fBTcl_UniCharIsAlnum\fR(\fIch\fR)
18 .sp
19 int
20 \fBTcl_UniCharIsAlpha\fR(\fIch\fR)
21 .sp
22 int
23 \fBTcl_UniCharIsControl\fR(\fIch\fR)
24 .sp
25 int
26 \fBTcl_UniCharIsDigit\fR(\fIch\fR)
27 .sp
28 int
29 \fBTcl_UniCharIsGraph\fR(\fIch\fR)
30 .sp
31 int
32 \fBTcl_UniCharIsLower\fR(\fIch\fR)
33 .sp
34 int
35 \fBTcl_UniCharIsPrint\fR(\fIch\fR)
36 .sp
37 int
38 \fBTcl_UniCharIsPunct\fR(\fIch\fR)
39 .sp
40 int
41 \fBTcl_UniCharIsSpace\fR(\fIch\fR)
42 .sp
43 int
44 \fBTcl_UniCharIsUpper\fR(\fIch\fR)
45 .sp
46 int
47 \fBTcl_UniCharIsWordChar\fR(\fIch\fR)
48 .SH ARGUMENTS
49 .AS int ch
50 .AP int ch in
51 The Tcl_UniChar to be examined.
52 .BE
53
54 .SH DESCRIPTION
55 .PP
56 All of the routines described examine Unicode characters and return a
57 boolean value. A non-zero return value means that the character does
58 belong to the character class associated with the called routine. The
59 rest of this document just describes the character classes associated
60 with the various routines.
61
62 .SH "CHARACTER CLASSES"
63 .PP
64 \fBTcl_UniCharIsAlnum\fR tests if the character is an alphanumeric Unicode character.
65 .PP
66 \fBTcl_UniCharIsAlpha\fR tests if the character is an alphabetic Unicode character.
67 .PP
68 \fBTcl_UniCharIsControl\fR tests if the character is a Unicode control character.
69 .PP
70 \fBTcl_UniCharIsDigit\fR tests if the character is a numeric Unicode character.
71 .PP
72 \fBTcl_UniCharIsGraph\fR tests if the character is any Unicode print character except space.
73 .PP
74 \fBTcl_UniCharIsLower\fR tests if the character is a lowercase Unicode character.
75 .PP
76 \fBTcl_UniCharIsPrint\fR tests if the character is a Unicode print character.
77 .PP
78 \fBTcl_UniCharIsPunct\fR tests if the character is a Unicode punctuation character.
79 .PP
80 \fBTcl_UniCharIsSpace\fR tests if the character is a whitespace Unicode character.
81 .PP
82 \fBTcl_UniCharIsUpper\fR tests if the character is an uppercase Unicode character.
83 .PP
84 \fBTcl_UniCharIsWordChar\fR tests if the character is alphanumeric or
85 a connector punctuation mark.
86
87 .SH KEYWORDS
88 unicode, classification