The Xrange function returns a series of character values. The values that are returned may be unprintable. When displayed on a console some character values may have surprising effects.
result = Xrange( [ start ] [, end ] ) |
Note: if start exceeds end, then the character values returned wraps when 'FF'x is reached, and proceeds with '00'x, '01'x, ... until the end value is reached.
Examples:
say Xrange( 'a', 'i' ) -- shows: abcdefghi, in Ascii and EBCDIC environments allCharacters = xrange() -- the complete gamut of character values -- '00'x to 'FF'x first10Characters = xrange( , '09'x) -- '00'x to '09'x last10Characters = xrange( 'F6'x) -- 'F6'x to 'FF'x say c2x( xrange( 'F6'x) ) -- shows: F6F7F8F9FAFBFCFDFEFF say c2x( xrange( 'FE'x, '02'x ) ) -- shows: FEFF000102 -- this is a wrapped character sequence say Translate( 'AbraCaDabra', xrange( 'a', 'z' ), xrange( 'A', 'Z' ) )
LowerEbcdic : procedure
|