Finds instances of text in a string.
'Declaration
Public Shared Function FindTextInstances( _
ByVal As System.String, _
ByVal As System.String, _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Boolean, _
ByVal As System.Boolean, _
ByVal As System.Boolean _
) As System.Collections.Generic.IList(Of Integer)
public static System.Collections.Generic.IList<int> FindTextInstances(
System.string ,
System.string ,
System.int ,
System.int ,
System.int ,
System.bool ,
System.bool ,
System.bool
)
Parameters
- what
- The text to search for.
- where
- The string to search.
- fromIdx
- Index in "where" to start search at.
- length
- Length of substring to search in.
- maxCount
- Max number of instances to find.
- forward
- Search direction.
- matchCase
- Ignore case.
- word
- Whole word search.
Return Value
Array of indexes into "where" to the found instances.