![]() |
![]() |
![]() |
![]() |
![]() |
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 |
This function is the reverse of the standardized bit2str.
Example 1:
var bitstring myb := str2bit("1011011100"); // variable myb will contain '1011011100'B