![]() |
![]() |
![]() |
![]() |
![]() |
This function converts a octetstring value to a charstring. Each octet of the input is transformed into two characters representing hexadecimal digits. The returned charstring will contain characters from the ranges "0" .. "9" and "A" .. "F", that is, letters are always stored in uppercase.
Note: Some earlier versions of the TTCN-3 Core Language standard contained the description of function oct2char incorrectly under the name oct2str.
Related keyword:
oct2str(octetstring value) return charstring |
The character string returned may contain non-graphical characters, which can not be presented between the double quotes.
Example 1:
const charstring c_lettres := oct2str ('80CafeFeed'O);
The constant called c_lettres will contain the string "80CAFEFEED".