String and character manipulation commands
These commands provide functionality to classify
characters, convert characters between character and
numeric values, convert an index into a string, determine
the length of a string, extract a range of characters from
a string, replicate a string a number of times, and
transliterate a string (similar to the UNIX
tr(C)
program).
Available commands are:
cequal(TCL)-
compares two strings for equality
cexpand(TCL)-
expands backslash characters in a string to actual characters
cindex(TCL)-
returns the character indexed by the given expression from string
clength(TCL)-
returns the length of a string in characters
crange(TCL)-
returns a range of characters from a string
csubstr(TCL)-
returns a substring of characters from a string
ctoken(TCL)-
parses a token out of a character string
ctype(TCL)-
tests whether characters in a string are of a given class
replicate(TCL)-
replicates a string n times
translit(TCL)-
changes characters in inrange to outrange
Next topic:
XPG/3 message catalog commands
Previous topic:
Keyed lists
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003