STD.Str.FilterOut( source, filterstring )
STD.Uni.FilterOut( source, filterstring )
source | A string containing the data to filter. |
filterstring | A string containing the characters to use as the filter. |
Return: | FilterOut returns a STRING or UNICODE value, as appropriate. |
The FilterOut functions return the source string with all the characters in the filterstring removed.
Example:
//all these examples result in 'Success' A := IF(STD.Str.FilterOut('ABCDE', 'BD') = 'ACE', 'Success', 'Failure - 1'); B := IF(STD.Str.FilterOut('ABCDEABCDE', 'BD') = 'ACEACE', 'Success', 'Failure - 2'); C := IF(STD.Str.FilterOut('ABCDEABCDE', '') = 'ABCDEABCDE', 'Success', 'Failure - 3'); D := IF(STD.Str.FilterOut('', 'BD') = '', 'Success', 'Failure - 4');