Product SiteDocumentation Site

7.4.82. XRANGE (Hexadecimal Range)


>>-XRANGE(--+-------+--+------+--)-----------------------------><
            +-start-+  +-,end-+

Returns a string of all valid 1-byte encodings (in ascending order) between and including the values start and end. The default value for start is "00"x, and the default value for end is "FF"x. If start is greater than end, the values wrap from "FF"x to "00"x. If specified, start and end must be single characters.
Here are some examples:

Example 7.112. Builtin function XRANGE

XRANGE("a","f")      ->   "abcdef"
XRANGE("03"x,"07"x)  ->   "0304050607"x
XRANGE(,"04"x)       ->   "0001020304"x
XRANGE("FE"x,"02"x)  ->   "FEFF000102"x
XRANGE("i","j")      ->   "ij"                   /* ASCII  */