On Sunday, 12 June 2016 at 08:15:37 UTC, ag0aep6g wrote:
On 06/12/2016 05:16 AM, Andrew Godfrey wrote:
Eg it says ".chars returns the number of characters (aka
Does this count the number of graphemes, or the number of
clusters? Later on with \r\n it pretty much says that it
clusters. Here it says it counts graphemes.
Sorry, I still don't get it. Can you give an example string
where counting graphemes gives a different result from counting
Huh. On researching "grapheme cluster", I see it is a weird
Unicode term that apparently means the same thing as grapheme.
Definitely something to avoid in an article (or, explain very
To the uninitiated, "grapheme cluster" means "a cluster of
graphemes" and implies a one-to-many mapping.