Optional
Readonly
canonicalizeThe canonicalization function. This typically maps characters to their lowercase form.
If no function is given, then the identity function is used. This also implies that toCharSet
must return a
set containing only the given character.
char => char
Readonly
to
A set of functions that can be used to perform case-insensitive matching.
It must fulfill the following conditions:
canonicalize
must be idempotent, i.e.canonicalize(canonicalize(char)) === canonicalize(char)
.toCharSet(canonicalize(a))
is the set of all charactersc
such thatcanonicalize(a) === canonicalize(c)
.