]>
git.proxmox.com Git - rustc.git/blob - vendor/bstr/scripts/regex/grapheme.sh
3 # vim: indentexpr= nosmartindent autoindent
4 # vim: tabstop=2 shiftwidth=2 softtabstop=2
6 # This regex was manually written, derived from the rules in UAX #29.
7 # Particularly, from Table 1c, which lays out a regex for grapheme clusters.
11 Control
="\p{gcb=Control}"
12 Prepend
="\p{gcb=Prepend}"
19 Extend
="\p{gcb=Extend}"
21 SpacingMark
="\p{gcb=SpacingMark}"
24 ExtendPict
="\p{Extended_Pictographic}"
34 ($L* ($V+ | $LV $V* | $LVT) $T*)
43 $ExtendPict ($Extend* $ZWJ $ExtendPict)*
47 [$Extend $ZWJ $SpacingMark]*