Skip to content

Commit

Permalink
Make examples compile
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Mar 6, 2018
1 parent 51efd08 commit 76ec65d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Type/Cool.pod6
Expand Up @@ -708,7 +708,7 @@ number of characters in the string. Please note that on the JVM, you currently g
codepoints instead of graphemes.
say 'møp'.chars; # OUTPUT: «3␤»
say 'ã̷̠̬̊'.chars # OUTPUT: «1␤»
say 'ã̷̠̬̊'.chars; # OUTPUT: «1␤»
say '👨‍👩‍👧‍👦🏿'.chars; # OUTPUT: «1␤»
X<|Grapheme> X<|NFG>
Expand All @@ -726,8 +726,8 @@ there are many other cases when this may happen. Another example is C<\c[ZWJ]>
You can check C<Grapheme_Cluster_Break> property of a character in
order to see how it is going to behave:
say ‘ã̷̠̬̊’.uniprops(‘Grapheme_Cluster_Break’) # OUTPUT: «(Other Extend Extend Extend Extend)␤»
say ‘👨‍👩‍👧‍👦🏿’.uniprops(‘Grapheme_Cluster_Break’) # OUTPUT: «(E_Base_GAZ ZWJ E_Base_GAZ ZWJ E_Base_GAZ ZWJ E_Base_GAZ E_Modifier)␤»
say ‘ã̷̠̬̊’.uniprops(‘Grapheme_Cluster_Break’); # OUTPUT: «(Other Extend Extend Extend Extend)␤»
say ‘👨‍👩‍👧‍👦🏿’.uniprops(‘Grapheme_Cluster_Break’); # OUTPUT: «(E_Base_GAZ ZWJ E_Base_GAZ ZWJ E_Base_GAZ ZWJ E_Base_GAZ E_Modifier)␤»
You can read more about graphemes in the
L<Unicode Standard|http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries>,
Expand Down

0 comments on commit 76ec65d

Please sign in to comment.