STD.Str.FindCount( src, sought )
STD.Uni.FindCount( src, sought, form )
src | A string containing the data to search. |
sought | A string containing the substring to search for. |
form | The type of Unicode normalization to be employed. (NFC, NFD, NFKC, or NFKD) |
Return: | StringFindCount returns an INTEGER value. |
The FindCount function returns the number of non-overlapping instances of the sought string within the src string.
Example:
A := IF(STD.Str.FindCount('ABCDE', 'BC') = 1, 'Success', 'Failure - 1'); //success B := IF(STD.Str.FindCount('ABCDEABCDE', 'BC') = 1, 'Success', 'Failure - 1'); //failure