Herror ::tuple_ords (
    const HTuple &T,
    long *Ords
)
Herror ::tuple_ords (
    const HTuple &T,
    HTuple *Ords
)

Convert a tuple of strings into a tuple of their ASCII codes.

::tuple_ords converts the input tuple T, which may only contain strings and integer numbers, into a tuple of integer numbers that represent the ASCII code of the characters of the strings. The characters of the individual strings are output according to their order within the string and within the tuple. Integer numbers are simply copied to an appropriate position in the output string. This operator can be used to prepare outputs with ::write_serial. In particular, a byte with value 0 can be written by inserting the integer number 0 into T.


Parameters

T (input_control)
string(-array) -> HTuple.char * / long
Input tuple.

Ords (output_control)
integer(-array) -> (HTuple.) long *
ASCII code of the input tuple.


Example
tuple_ords (["String 1", 0, "String 2", 0], Data)
write_serial (SerialHandle, Data)

Alternatives

::tuple_ord


See also

::tuple_chr, ::tuple_chrt, ::write_serial


Module

Operators not requiring licensing



Copyright © 1996-2002 MVTec Software GmbH