OccurrencesOf method
Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)
Name | Type | Data Type | Description |
---|---|---|---|
Result | *Result (Optional) | Integer | Number of occurrences |
String | *Input | Unicode String | String to search for |
StartPosition | *Input (Optional) | Integer | Position at which to start searching |
OccurencesOf returns the number of times the string supplied in the String parameter can be found in a string, starting from the character specified in the Startposition parameter. OccurrencesOf is case sensitive.
In this example, if #String contained "ABCDEABCDEABCDE", the result would be 3
#Occurences := #String.OccurencesOf( "ABC" )
Febuary 18 V14SP2