Methods
(async) composed() → {Promise.<Node>}
A composition of set operations combining various other sets
- Type:
- Promise.<Node>
(async) enumerated() → {Promise.<Node>}
An enumeration of characters and strings
- Type:
- Promise.<Node>
(async) parse(pattern) → {Promise.<Node>}
Parse a UnicodeSet pattern into an abstract syntax tree (AST)
Name | Type | Description |
---|---|---|
pattern | string | the pattern to parse |
- Type:
- Promise.<Node>
peek_nonws() → (nullable) {string}
Peek the first non-whitespace character
- Type:
- string
(async) perlProperty() → {Promise.<Node>}
Extract node for Perl-style property
- Type:
- Promise.<Node>
pop_nonws() → (nullable) {string}
Pop the first non-whitespace character
- Type:
- string
(async) pop_nonws_quoted() → {Promise.<{char: string, quoted: boolean, length: number}>}
Pop non-whitespace, resolving quoted character(s) if needed
- Type:
- Promise.<{char: string, quoted: boolean, length: number}>
(async) posixProperty() → {Promise.<Node>}
Extract node for Posix-style property
- Type:
- Promise.<Node>
(async) property(invert, stop_char) → {Promise.<Node>}
Extract generic node for Perl/Posix property
Name | Type | Description |
---|---|---|
invert | boolean | starting inverted state |
stop_char | string | single character signaling end of property name-value definition |
- Type:
- Promise.<Node>
(async) quoted() → {Promise.<{char: string, length: number}>}
Extract quoted character(s)
- Type:
- Promise.<{char: string, length: number}>
quotedCodepoint(length, list) → {Object}
Fetch a hex codepoint, optionally a list of such codepoints
Name | Type | Description |
---|---|---|
length | number | how many hex chars are allowed for non lists |
list | boolean | whether a list of codepoints is allowed |
- Type:
- Object
(async) quotedName() → {Promise.<{char: string, length: number}>}
Fetch name via unicode character name
- Type:
- Promise.<{char: string, length: number}>
root() → {Promise.<Node>}
Root set, enclosing all others
- Type:
- Promise.<Node>
(async) sequence() → {Promise.<Node>}
A sequence is surrounded by brackets, and contains either an enumerated or composed set
- Type:
- Promise.<Node>
(async) string() → {Promise.<{char: string, is_char: false, length: number}>}
Extract a string
- Type:
- Promise.<{char: string, is_char: false, length: number}>