Constructor
new ve.dm.SetTextFinder(query, [options])
#
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
Set | The set of words to match |
|||||||||||||||||
options |
Object |
optional |
Search options Properties:
|
- Source:
Methods
findRanges()
#
- Source:
fixOffset(s, offsetLower) → {number}static
#
Map from offset in case-folded string to offset in original string In some cases, case-folding can change string length For example, if s = '\u0130', then s.length === 1 but s.toLocaleLowerCase( 'en' ).length === 2
Parameters:
| Name | Type | Description |
|---|---|---|
s |
string | |
offsetLower |
number | in lowercased string |
- Source:
Returns:
corresponding offset in original string
- Type
- number
Map from offset in case-folded string to offset in original string In some cases, case-folding can change string length For example, if s = '\u0130', then s.length === 1 but s.toLocaleLowerCase( 'en' ).length === 2