grappa icon indicating copy to clipboard operation
grappa copied to clipboard

More Unicode related rules

Open fge opened this issue 11 years ago • 0 comments

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?

fge avatar May 20 '14 08:05 fge