1.10.4.2. Hexadecimal Strings
A hexadecimal string is a literal string, expressed using
a hexadecimal notation of its encoding. It is any sequence of zero or more
hexadecimal digits
(
0-
9,
a-
f,
A-
F),
grouped in pairs. A single leading
0
is assumed, if necessary, at the beginning of the string to make an even
number of hexadecimal digits. The groups of digits are optionally separated
by one or more whitespace characters, and the whole sequence is delimited by
single or double quotation marks and immediately followed by the symbol
x or
X.
Neither
x nor
X can be part of a
longer symbol.
The whitespace characters, which can only be on byte boundaries (and not at the
beginning or end of the string), are to improve readability. The language
processor ignores them.
A hexadecimal string is a literal string formed by packing the hexadecimal
digits given. Packing the hexadecimal digits removes whitespace and converts
each pair of hexadecimal digits into its equivalent character, for example,
'41'x to
A.