[]
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)
| 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. |