Re:String length functions for single emoji characters evalu...
by anaerobicover on Friday March 26, 2021 @11:59AM
(#26593637)
But what do you do when you're processing a string with codepoints that compose into one user-visible glyph?
[ Parent
| on HN ]
Re:String length functions for single emoji characters evalu...
by jxy on Friday March 26, 2021 @03:42PM
(#26596098)
yeah, and what do you do when you got a nonexistent country: "🇩🇧".
Re:String length functions for single emoji characters evalu...
by Symbiote on Friday March 26, 2021 @05:12PM
(#26597002)
Your example changes length depending on the font. (If a new country gets the code DB, fonts will gradually be updated to include the flag.)
I'll bet there are some systems in the PRC that don't include 🇹🇼.