![]() |
![]() |
![]() |
![]() |
![]() |
The keyword charstring denotes a basic string type whose distinguished values are the ordered sequences of characters of ISO/IEC 646 International Reference Version (IRV) - formerly International Alphabet No.5 (IA5) described in ITU-T Recommendation T.50.
TITAN specific extensions to the standard: |
Related keywords:
charstring |
const charstring c_fuezeer := "AazZ";
The constant defined is called c_fuezeer and has the value AazZ.
const charstring c_veve := int2char (119);
The constant called c_veve will contain the letter w
const charstring c_ideezoe := "Citationstecken:""";
The constant defined is called c_ideezo and has the value Citationstecken:".
const boolean c_saluton := ( c_fuezeer == c_ideezoe );
The constant c_saluton will have the value false, because two character strings are equal only if they have equal lengths and the characters at all positions are the same. The parantheses are optional.
const charstring c_lepidlo := c_fuezeer & c_ideezoe;
The constant c_lepidlo will have the value AazZCitationstecken:".
const charstring c_elem := c_fuezeer[2];
The constant called c_elem will consist of of a single element with the value z.
const charstring c_vacuum := "";
The constant called c_vacuum will be an empty string.
const integer c_siffra := char2int ("@");
The constant called c_siffror will have the integer value 64.
const integer c_ziffer := str2float ("+123.456E+02");
The constant called c_ziffer will have the floating point value 12345.6.
const integer c_siffra := str2int ("-66");
The constant called c_siffra will have the integer value -66.
const octetstring c_duebel := str2oct ("Tinky-Winky");
The constant called c_duebel will have the value '54696E6B792D57696E6B79'O .
const integer c_longeco := lengthof ("pentristino");
The constant called c_longeco will have the value 11 corresponding to the number of characters in the string .
const octetstring c_deposed := char2oct ("Tinky-Winky");
The constant called c_deposed will contain the octet string ’54696E6B792D57696E6B79’O because the resulting octet string will have the same length as the incoming character string. The octets of the octet string will contain the ASCII codes of the appropriate characters of the character string.
const bitstring c_marque := str2bit ("1011011100");
The constant called c_marque will contain the bit string ’1011011100’B because each character represents the value of one bit in the resulting bit string. Its argument may contain the characters ’0’ or ’1’ only, otherwise the result is a dynamic test case error.
const hexstring c_jesien := str2hex ("1D7");
The constant called c_jesien will contain the hexadecimal string ’1D7’H because each character in the character string represents the value of one hexadecimal digit in the resulting hexadecimal string in the same order.
var charstring v_schranke ("F", "f");
The variable called v_schranke may hold the characters "F" and "f" only .
const charstring c_ringlspiel := "abcdefg" <@ 3;
The constant called c_ringlspiel will hold the value"defgabc" (the left operand rotated by three characters).
var charstring v_span ("c" .. "e");
The variable v_span may have the following values: "c", "d", "e".
BNF definition of charstring
BNF definition of charstring value