TCCConversion.cc | |
Functions | |
f__putInLowercase | Put charstring to lowercase |
f__putInUppercase | Put charstring to uppercase |
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_convertIPAddrToBinary | Converts an IPv4 and IPv6 address to its hex representation. |
f_oct2char_safe | Fault tolerant version of the oct2str Titan built-in function. |
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!
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
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
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.