This command is part of the TclX
- ctype ?-failindex var? class string
Returns whether the string
is in the given class
, optionally setting var
to the index of the first character in string
that is not in the class.
The following class
es are supported:
- alnum, alpha, ascii, cntrl, digit, graph, lower, space, print, punct, upper, xdigit
There are also char
special classes for conversion between characters and their unicode code points.
See also edit