Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Automata.makeCharSet/makeCharClass to optimize regexp (#14193)
Add Automata.makeCharSet(int[])/makeCharClass(int[],int[]) to optimize regexp. * Add new "character class" node, which was previously composed by union of many nodes. * Remove "predefined class" node, which previously built an internal separate regex on the fly, it is just another character class. * RegExp no longer uses union() internally, except for union (|) operator. * format codepoints in the internal parse tree output with U+%04X * Fix concatenate to remove the dead states it creates, just like intersection/union/etc do * fix dead-states-test to explicitly create dead states, rather than relying on some function to create a mess. it doesn't anymore.
- Loading branch information