All Questions

4
votes
3answers
1095 views

Get grapheme character count in javascript strings?

I'm trying to get the length of a javascript string in user-visible graphemes, ie ignoring combining characters (and surrogate pairs?). Is this possible, and if so, how would I go about it? We're usi...
4
votes
1answers
692 views

Why is Swift counting this Grapheme Cluster as two characters instead of one?

Generally Swift is really smart about counting grapheme clusters as a single character. If I want to make a Lebanese flag, for example, I can combine the two Unicode characters U+1F1F1 REGIONAL INDI...

Previous Next