tuple_ord — Convert a tuple of strings of length 1 into a tuple of integer numbers.
tuple_ord converts the input tuple
T, which may only contain
strings of length 1, into a tuple of integer numbers.
When the encoding used in the HALCON library is UTF-8 (see
set_system('filename_encoding', 'utf8')) and the string operators
are set to work by code points (see
set_system('tuple_string_operator_mode', 'codepoint')), which is the
default for both, the operator accepts the UTF-8 representation of a
Unicode character (code point) and returns the appropriate Unicode character
When the HALCON library encoding is set to 'locale' or the string
operator mode is 'byte', the operator accepts only a single byte for
each input string.
In that case the operator
tuple_ord returns the ANSI code of the
input byte as integer number between 0 and 256.
See also Tuple / String Operations for a more detailed description
of the different modes and further encoding issues.
If the input tuple is empty, the operator returns an empty tuple.
HDevelop provides an in-line operation for
which can be used in an expression in the following syntax:
Ord := ord(T)
Input tuple with strings of length 1.
Output tuple with Unicode character codes or ANSI codes of the characters passed in the input tuple.