![]() |
![]() |
![]() |
![]() |
![]() |
universal can only be used together with the keyword charstring forming a single, composed keyword.
The keyword universal charstring denotes a basic string type whose distinguished values are zero, one, or more characters from ISO/IEC 10646.
Related keywords:
universal charstring |
const universal charstring c_kordo := "ĉirkaŭĵo";
The constant defined is called c_kordo and has the value ĉirkaŭĵo
const universal charstring c_ukrouzek := int2unichar (367);
The constant called c_ukrouzek will contain the Czech letter ů
const universal charstring c_leet := "être:""";
The constant defined is called c_leet and has the value être:"
const boolean c_baade := ( c_kordo == c_leet );
The constant c_baade 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_gluo := c_kordo & c_ukrouzek & c_ukrouzek & c_ukrouzek;
The constant c_gluo will contain the string ĉirkaŭĵoůůů
const universal charstring c_circonflex := c_leet[0];
The constant called c_circonflex will contain a single element with the value ê.
const universal charstring c_vakuo := "";
The constant called c_vakuo will be an empty string.
const charstring c_siffra := unichar2char(char(0,0,0,64));
The constant called c_siffra will have the charstring value "@".
const integer c_siffra := unichar2int("é");
The constant called c_siffra will have the integer value 130.
const integer c_siffra1 := unichar2int(char(127,255,255,255));
The constant called c_siffra will have the integer value 2 147 483 647.
const integer c_longeur := lengthof(c_kordo);
The constant called c_longeur will have the value 8 corresponding to the number of characters in the string .
const integer c_ostr := unichar2oct("ÃÃÃäöü");
The constant called c_ostr will have the value 'EFBBBFC384C396C39CC3A4C3B6C3BC'O.
const integer c_ustr := oct2unichar('C384C396C39CC3A4C3B6C3BC'O);
The constant called c_ustr will have the value "ÃÃÃäöü"
var universal charstring c_een(char(0,0,0,129));
The variable called c_een may hold only the character "ü".
const universal charstring c_merry := "ábcdéfg" <@ 3;
The constant called c_merry will hold the value"défgábc" (the left operand rotated by three characters) .
var universal charstring v_spannung((char(0, 0, 0, 67) .. char(0, 0, 0, 69));
The variable v_spannung may have the following values: "c", "d", "e".
BNF definition of universal
BNF definition of universal charstring value