Perl6 Unicode support

Andrew Godfrey via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Jun 11 20:16:37 PDT 2016


On Saturday, 11 June 2016 at 19:43:45 UTC, ag0aep6g wrote:
> On 06/11/2016 09:25 PM, Andrew Godfrey wrote:
>> That's the distinction, yes. The article mentions both in a 
>> way that
>> makes me unsure if Perl 6 confused the terms (or maybe it's 
>> just the
>> article that isn't being clear).
>
> But how would you "focus" on one or the other?
> Is there any operation that works differently on graphemes than 
> on grapheme clusters?
> Counting/skipping/extracting graphemes is the same as counting 
> grapheme clusters, no?

Eg it says ".chars returns the number of characters (aka 
graphemes)"

Does this count the number of graphemes, or the number of 
grapheme clusters? Later on with \r\n it pretty much says that it 
counts grapheme clusters. Here it says it counts graphemes.


More information about the Digitalmars-d-announce mailing list