Working with grapheme clusters

Anne van Kesteren annevk at
Thu Oct 24 07:38:58 PDT 2013

On Thu, Oct 24, 2013 at 3:31 PM, Mathias Bynens <mathias at> wrote:
> Imagine you’re writing a JavaScript library that escapes a given string as an HTML character reference, or as a CSS identifier, or anything else. In those cases, you don’t care about grapheme clusters, you care about code points, cause those are the units you end up escaping individually.

Is that really a common operation? I would expect formatting,
searching, etc. to dominate. E.g. whenever you do substr/substring you
would want that to be grapheme-cluster aware.


More information about the es-discuss mailing list