crange(TCL)


crange -- return a range of characters from string

Synopsis

crange string firstExpr lastExpr

Description

Returns a range of characters from string starting at the character indexed by the expression firstExpr (zero-based) up to the character indexed by the expression lastExpr.

If the expression firstExpr or lastExpr starts with the string ``end'', then ``end'' is replaced with the index of the last character in the string. If the expression starts with ``len'', then ``len'' is replaced with the length of the string.


02 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005