[]
Finds instances of text in a string.
public static IList<int> FindTextInstances(string what, string where, int fromIdx, int length, int maxCount, bool forward, bool matchCase, bool word)
Public Shared Function FindTextInstances(what As String, where As String, fromIdx As Integer, length As Integer, maxCount As Integer, forward As Boolean, matchCase As Boolean, word As Boolean) As IList(Of Integer)
| Type | Name | Description |
|---|---|---|
| string | what | The text to search for. |
| string | where | The string to search. |
| int | fromIdx | Index in "where" to start search at. |
| int | length | Length of substring to search in. |
| int | maxCount | Max number of instances to find. |
| bool | forward | Search direction. |
| bool | matchCase | Ignore case. |
| bool | word | Whole word search. |
| Type | Description |
|---|---|
| IList<int> | Array of indexes into "where" to the found instances. |