Function
Static Public Summary | ||
public |
* mock(string: StringSlice, patterns: Iterable<StringSlice>): IterableIterator<Hit> A brute-force string searching algorithm leveraging String#indexOf. |
Static Public
public * mock(string: StringSlice, patterns: Iterable<StringSlice>): IterableIterator<Hit> source
import mock from '@string-searching/specification/src/mock.js'
A brute-force string searching algorithm leveraging String#indexOf.
Params:
Name | Type | Attribute | Description |
string | StringSlice | ||
patterns | Iterable<StringSlice> |