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(1)
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
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005