Titan



hex2str


This function converts a single hexstring value to a single charstring. The resulting charstring has the same length as the hexstring and contains only the characters '0' to '9'and 'A' to 'F'.

For the purpose of this conversion, a hexstring should be converted into a charstring. Each hex digit of the hexstring is converted into a character '0' to '9' and 'A' to 'F' depending on the value 0 to 9 or A to F of the hex digit. The consecutive order of characters in the resulting charstring is the same as the order of digits in the hexstring.


Related keyword:


hex2str(hexstring value) return charstring


Example 1:

const charstring c_snaella := hex2str ('BBC0530A0'H);

The constant called c_snaella will contain the string BBC0530A0 because the resulting character string has the same length as the hexadecimal string and contains only the characters '0' .. 'F'.