This module supports string conversions
-
-
| TCCConversion_Functions | This module supports string conversions | 
| Functions | |
| f_putInLowercase | Put charstring to lowercase | 
| f_putInUppercase | Put charstring to uppercase | 
| f_unichar2charstr | Convert universal charstring 2 charstring | 
| f_charstr2unichar | Convert charstring 2 universal charstring | 
| f_replaceFirstOccurenceOfSubstring | Replace first occurance of parSubStrA with parSubStrB in parInStr | 
| f_replaceEveryOccurenceOfSubstring | Replace every occurance of parSubStrA with parSubStrB in parInStr | 
| f_replaceFirstOccurenceOfPattern | Replace first occurance of pattern parSubStrA with parSubStrB in parInStr | 
| f_replaceEveryOccurenceOfPattern | Replace every occurance of pattern parSubStrA with parSubStrB in parInStr | 
| f_addOctetstring | Add two integer values represented in OCTETSTRING | 
| f_subOctetstring | Substract two integer values represented in OCTETSTRING | 
| f_compOctetstring | Compare two integer values represented in OCTETSTRING | 
| f_substr_token | The function returns a substring from a value. | 
| f_strstr | The f_strstr function locates the first occurrence of the string s2 in string s1 and returns an index of starting pont of the located string, or -1 if the string is not found. | 
| f_OctetIpv4 | convertes an IPv4 address given in dotted notation to its hex representation | 
| f_convertIPAddrToBinary | Converts an IPv4 and IPv6 address to its hex representation. | 
| f_oct2char_safe | Fault tolerant version of the oct2str Titan built-in function. | 
function f_replaceFirstOccurenceOfSubstring( in charstring parInStr , in charstring parSubStrA, in charstring parSubStrB ) return charstring 
Replace first occurance of parSubStrA with parSubStrB in parInStr
| parInStr | in charstring - input string | 
| parSubStrA | in charstring - string to replace | 
| parSubStrB | in charstring - string to replace with | 
| charstring | modified input string | 
-
-
function f_replaceEveryOccurenceOfSubstring( in charstring parInStr, in charstring parSubStrA, in charstring parSubStrB ) return charstring 
Replace every occurance of parSubStrA with parSubStrB in parInStr
| parInStr | in charstring - input string | 
| parSubStrA | in charstring - string to replace | 
| parSubStrB | in charstring - string to replace with | 
| charstring | modified input string | 
-
-
function f_replaceFirstOccurenceOfPattern( in charstring parInStr, in charstring parSubStrA, in charstring parSubStrB ) return charstring 
Replace first occurance of pattern parSubStrA with parSubStrB in parInStr
| parInStr | in charstring - input string | 
| parSubStrA | in charstring - pattern to replace | 
| parSubStrB | in charstring - string to replace with | 
| charstring | modified input string | 
-
-
function f_replaceEveryOccurenceOfPattern( in charstring parInStr, in charstring parSubStrA, in charstring parSubStrB ) return charstring 
Replace every occurance of pattern parSubStrA with parSubStrB in parInStr
| parInStr | in charstring - input string | 
| parSubStrA | in charstring - string to replace | 
| parSubStrB | in charstring - string to replace with | 
| charstring | modified input string | 
-
-
external function f_addOctetstring( in octetstring par1, in octetstring par2 ) return octetstring 
Add two integer values represented in OCTETSTRING
| par1 | in octetstring - first octetstring value | 
| par2 | in octetstring - second octetstring value | 
| octetstring | sum of input | 
-
Negative values are unhandled!
external function f_subOctetstring( in octetstring par1, in octetstring par2 ) return octetstring 
Substract two integer values represented in OCTETSTRING
| par1 | in octetstring - first octetstring value | 
| par2 | in octetstring - second octetstring value | 
| octetstring | difference of input | 
-
Negative values are unhandled!
external function f_compOctetstring( in octetstring par1, in octetstring par2 ) return integer 
Compare two integer values represented in OCTETSTRING
| par1 | in octetstring - first octetstring value | 
| par2 | in octetstring - second octetstring value | 
| integer | 0: par1 = par2 1: par1>par2 2: par1<par2 | 
-
Negative values are unhandled!
external function f_substr_token( in charstring str, in charstring begin_token, in charstring end_token ) return charstring 
The function returns a substring from a value. The starting and the ending points are defined by the begin and end tokens.
| str | in charstring - the value | 
| begin_token | in charstring - begin token | 
| end_token | in charstring - end token | 
charstring. If one of the tokens is not found it returns an empty string
-
If end_token is an empty string the function returns the part of the value after the begin_token. If begin_token is an empty string the function returns the part of the value until the end_token. If both of them empty string the function returns the part whole value
external function f_strstr( in charstring s1, in charstring s2, in integer offset: = ) return integer 
The f_strstr function locates the first occurrence of the string s2 in string s1 and returns an index of starting pont of the located string, or -1 if the string is not found. If s2 is an empty, the func- tion returns 0.
| s1 | in charstring - input string | 
| s2 | in charstring - string to search | 
| offset | in integer - start offset. | 
index of starting pont of the located string
-
The offset determines the starting point of the search. Any occurance of the s2 before the offset is ignored. The offset is optional
function f_OctetIpv4( in charstring pl_ip ) return octetstring 
convertes an IPv4 address given in dotted notation to its hex representation
| pl_ip | in charstring - input string | 
hex value of the Ip in an octetstring
-
type record of integer IntegerList;
external function f_convertIPAddrToBinary( in charstring pl_ip ) return octetstring 
Converts an IPv4 and IPv6 address to its hex representation. IPv6 address is assumed if the input string contains ‘:’
| pl_ip | in charstring - input string | 
hex value of the Ip in an octetstring
-
external function f_oct2char_safe( in octetstring par1, out charstring par2 ) return boolean 
Fault tolerant version of the oct2str Titan built-in function.
| s1 | in octetsttring - input string | 
| s2 | out charstring - output string | 
false on fault, ie. on unbound input or invalid character in input. true on success
-
On fault, the longest chunk that could be decoded is returned.
Put charstring to lowercase
external function f_putInLowercase( charstring pl_string ) return charstring 
Put charstring to uppercase
external function f_putInUppercase( charstring pl_string ) return charstring 
Convert universal charstring 2 charstring
function f_unichar2charstr ( in universal charstring p_unichar ) return charstring 
Convert charstring 2 universal charstring
function f_charstr2unichar ( in charstring p_char ) return universal charstring 
Replace first occurance of parSubStrA with parSubStrB in parInStr
function f_replaceFirstOccurenceOfSubstring( in charstring parInStr , in charstring parSubStrA, in charstring parSubStrB ) return charstring 
Replace every occurance of parSubStrA with parSubStrB in parInStr
function f_replaceEveryOccurenceOfSubstring( in charstring parInStr, in charstring parSubStrA, in charstring parSubStrB ) return charstring 
Replace first occurance of pattern parSubStrA with parSubStrB in parInStr
function f_replaceFirstOccurenceOfPattern( in charstring parInStr, in charstring parSubStrA, in charstring parSubStrB ) return charstring 
Replace every occurance of pattern parSubStrA with parSubStrB in parInStr
function f_replaceEveryOccurenceOfPattern( in charstring parInStr, in charstring parSubStrA, in charstring parSubStrB ) return charstring 
Add two integer values represented in OCTETSTRING
external function f_addOctetstring( in octetstring par1, in octetstring par2 ) return octetstring 
Substract two integer values represented in OCTETSTRING
external function f_subOctetstring( in octetstring par1, in octetstring par2 ) return octetstring 
Compare two integer values represented in OCTETSTRING
external function f_compOctetstring( in octetstring par1, in octetstring par2 ) return integer 
The function returns a substring from a value.
external function f_substr_token( in charstring str, in charstring begin_token, in charstring end_token ) return charstring 
The f_strstr function locates the first occurrence of the string s2 in string s1 and returns an index of starting pont of the located string, or -1 if the string is not found.
external function f_strstr( in charstring s1, in charstring s2, in integer offset: = ) return integer 
convertes an IPv4 address given in dotted notation to its hex representation
function f_OctetIpv4( in charstring pl_ip ) return octetstring 
Converts an IPv4 and IPv6 address to its hex representation.
external function f_convertIPAddrToBinary( in charstring pl_ip ) return octetstring 
Fault tolerant version of the oct2str Titan built-in function.
external function f_oct2char_safe( in octetstring par1, out charstring par2 ) return boolean