Readonly
acceptA sorted set of words.
In addition to the usual guarantees of StringSet
, this set is also guaranteed to not contain any
single-character words.
Readonly
charsAll single characters in the set.
true
if the set contains the empty word.
This is equivalent to this.accept.hasEmptyWord
.
true
if the set is empty (=accepts no words).
All word sets accepted by this set.
Word sets are guaranteed to be sorted by descending length and code points. This means that word sets are in the order in which the ECMAScript RegExp engine would try matching them.
Note: This is a lazy getter. Try to avoid calling it for best performance.
Returns whether this set and the other set contain the same formal language.
Returns whether this ⊂ other
.
Returns whether this ⊃ other
.
Returns whether this ⊆ other
.
Returns whether this ⊇ other
.
Rest
...others: (CharSet | UnicodeSet)[]Static
emptyStatic
fromStatic
from
A mathematical set of characters and strings.
Despite the name, the characters in this set are not necessarily Unicode characters. So
chars.maximum
is not necessarily0x10FFFF
.The set is represented as a union of a CharSet and a StringSet.