File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -708,7 +708,7 @@ number of characters in the string. Please note that on the JVM, you currently g
708
708
codepoints instead of graphemes.
709
709
710
710
say 'møp'.chars; # OUTPUT: «3»
711
- say 'ã̷̠̬̊'.chars # OUTPUT: «1»
711
+ say 'ã̷̠̬̊'.chars; # OUTPUT: «1»
712
712
say '👨👩👧👦🏿'.chars; # OUTPUT: «1»
713
713
714
714
X < |Grapheme > X < |NFG >
@@ -726,8 +726,8 @@ there are many other cases when this may happen. Another example is C<\c[ZWJ]>
726
726
You can check C < Grapheme_Cluster_Break > property of a character in
727
727
order to see how it is going to behave:
728
728
729
- say ‘ã̷̠̬̊’.uniprops(‘Grapheme_Cluster_Break’) # OUTPUT: «(Other Extend Extend Extend Extend)»
730
- say ‘👨👩👧👦🏿’.uniprops(‘Grapheme_Cluster_Break’) # OUTPUT: «(E_Base_GAZ ZWJ E_Base_GAZ ZWJ E_Base_GAZ ZWJ E_Base_GAZ E_Modifier)»
729
+ say ‘ã̷̠̬̊’.uniprops(‘Grapheme_Cluster_Break’); # OUTPUT: «(Other Extend Extend Extend Extend)»
730
+ say ‘👨👩👧👦🏿’.uniprops(‘Grapheme_Cluster_Break’); # OUTPUT: «(E_Base_GAZ ZWJ E_Base_GAZ ZWJ E_Base_GAZ ZWJ E_Base_GAZ E_Modifier)»
731
731
732
732
You can read more about graphemes in the
733
733
L < Unicode Standard|http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries > ,
You can’t perform that action at this time.
0 commit comments