UnicodeSet, but in TypeScript.
import { USet } from '@codehivetx/uset';
const us = new USet('[abcdef]');
us.add('g');
us.toString(); // [abcdefg]
Does not support:
- ranges
- strings
{}
in the input text - union or interesection
- backslashes
- unicode properties
- many more!
- https://www.unicode.org/reports/tr35/#Unicode_Sets
- https://unicode-org.github.io/icu/userguide/strings/unicodeset.html
Apache-2.0, see LICENSE
@srl295 / Steven R. Loomis of https://codehivetx.us