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.
|
T (input_control) |
string(-array) -> HTuple.char * / long |
| Input tuple. | |
|
Ords (output_control) |
integer(-array) -> (HTuple.) long * |
| ASCII code of the input tuple. | |
tuple_ords (["String 1", 0, "String 2", 0], Data) write_serial (SerialHandle, Data)
::tuple_chr, ::tuple_chrt, ::write_serial
Operators not requiring licensing