tuple_ords ( : : T : 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) -> string / integer
Input tuple.

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


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

Parallelization Information

tuple_ords is reentrant and processed without parallelization.


Alternatives

tuple_ord


See also

tuple_chr, tuple_chrt, write_serial


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH