You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In unicode, graphemes might be represented by a sequence of several codepoints. For example, the emoji 馃 is two codepoints: \ud83e\udef6.
Should the length of a string in JME count graphemes or codepoints? I think the least-surprising answer from a human's perspective is graphemes, but that means that all the methods for indexing and slicing strings need to be grapheme-aware.
The text was updated successfully, but these errors were encountered:
In unicode, graphemes might be represented by a sequence of several codepoints. For example, the emoji 馃 is two codepoints:
\ud83e\udef6
.Should the length of a string in JME count graphemes or codepoints? I think the least-surprising answer from a human's perspective is graphemes, but that means that all the methods for indexing and slicing strings need to be grapheme-aware.
The text was updated successfully, but these errors were encountered: