grappa
grappa copied to clipboard
More Unicode related rules
Grappa has unicodeChar() and unicodeRange().
I thought about adding inUnicodeBlock() as well; this would allow a matcher to tell whether the next code point (not char) is in this or that Unicode block.
The syntax would be:
inUnicodeBlock(Character.UnicodeBlock.ANCIENT_SYMBOLS)
See Character.UnicodeBlock. Note however that it will, by nature, depend on the JDK version; more recent JDK versions know more Unicode blocks.
Comments?