Titan



str2bit


This function converts a charstring value to a bitstring, where each character represents the value of one bit in the resulting bitstring. Its argument may contain the characters "0" or "1" only, otherwise the result is a dynamic test case error.

(This is an additional predefined function, supported by TITAN.)


Related keyword:


str2bit(charstring value) return bitstring


Example 1:

   var bitstring myb := str2bit("1011011100"); // variable myb will contain '1011011100'B