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 | '\" RCS: @(#) $Id: UniCharIsAlpha.3,v 1.5 2007/12/13 15:22:32 dgp Exp $ |
---|
8 | '\" |
---|
9 | .so man.macros |
---|
10 | .TH Tcl_UniCharIsAlpha 3 "8.1" Tcl "Tcl Library Procedures" |
---|
11 | .BS |
---|
12 | .SH NAME |
---|
13 | 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 |
---|
14 | .SH SYNOPSIS |
---|
15 | .nf |
---|
16 | \fB#include <tcl.h>\fR |
---|
17 | .sp |
---|
18 | int |
---|
19 | \fBTcl_UniCharIsAlnum\fR(\fIch\fR) |
---|
20 | .sp |
---|
21 | int |
---|
22 | \fBTcl_UniCharIsAlpha\fR(\fIch\fR) |
---|
23 | .sp |
---|
24 | int |
---|
25 | \fBTcl_UniCharIsControl\fR(\fIch\fR) |
---|
26 | .sp |
---|
27 | int |
---|
28 | \fBTcl_UniCharIsDigit\fR(\fIch\fR) |
---|
29 | .sp |
---|
30 | int |
---|
31 | \fBTcl_UniCharIsGraph\fR(\fIch\fR) |
---|
32 | .sp |
---|
33 | int |
---|
34 | \fBTcl_UniCharIsLower\fR(\fIch\fR) |
---|
35 | .sp |
---|
36 | int |
---|
37 | \fBTcl_UniCharIsPrint\fR(\fIch\fR) |
---|
38 | .sp |
---|
39 | int |
---|
40 | \fBTcl_UniCharIsPunct\fR(\fIch\fR) |
---|
41 | .sp |
---|
42 | int |
---|
43 | \fBTcl_UniCharIsSpace\fR(\fIch\fR) |
---|
44 | .sp |
---|
45 | int |
---|
46 | \fBTcl_UniCharIsUpper\fR(\fIch\fR) |
---|
47 | .sp |
---|
48 | int |
---|
49 | \fBTcl_UniCharIsWordChar\fR(\fIch\fR) |
---|
50 | .SH ARGUMENTS |
---|
51 | .AS int ch |
---|
52 | .AP int ch in |
---|
53 | The Tcl_UniChar to be examined. |
---|
54 | .BE |
---|
55 | |
---|
56 | .SH DESCRIPTION |
---|
57 | .PP |
---|
58 | All of the routines described examine Tcl_UniChars and return a |
---|
59 | boolean value. A non-zero return value means that the character does |
---|
60 | belong to the character class associated with the called routine. The |
---|
61 | rest of this document just describes the character classes associated |
---|
62 | with the various routines. |
---|
63 | .PP |
---|
64 | Note: A Tcl_UniChar is a Unicode character represented as an unsigned, |
---|
65 | fixed-size quantity. |
---|
66 | |
---|
67 | .SH "CHARACTER CLASSES" |
---|
68 | .PP |
---|
69 | \fBTcl_UniCharIsAlnum\fR tests if the character is an alphanumeric Unicode character. |
---|
70 | .PP |
---|
71 | \fBTcl_UniCharIsAlpha\fR tests if the character is an alphabetic Unicode character. |
---|
72 | .PP |
---|
73 | \fBTcl_UniCharIsControl\fR tests if the character is a Unicode control character. |
---|
74 | .PP |
---|
75 | \fBTcl_UniCharIsDigit\fR tests if the character is a numeric Unicode character. |
---|
76 | .PP |
---|
77 | \fBTcl_UniCharIsGraph\fR tests if the character is any Unicode print character except space. |
---|
78 | .PP |
---|
79 | \fBTcl_UniCharIsLower\fR tests if the character is a lowercase Unicode character. |
---|
80 | .PP |
---|
81 | \fBTcl_UniCharIsPrint\fR tests if the character is a Unicode print character. |
---|
82 | .PP |
---|
83 | \fBTcl_UniCharIsPunct\fR tests if the character is a Unicode punctuation character. |
---|
84 | .PP |
---|
85 | \fBTcl_UniCharIsSpace\fR tests if the character is a whitespace Unicode character. |
---|
86 | .PP |
---|
87 | \fBTcl_UniCharIsUpper\fR tests if the character is an uppercase Unicode character. |
---|
88 | .PP |
---|
89 | \fBTcl_UniCharIsWordChar\fR tests if the character is alphanumeric or |
---|
90 | a connector punctuation mark. |
---|
91 | |
---|
92 | .SH KEYWORDS |
---|
93 | unicode, classification |
---|