News for hackers. Stuff that matters.
Re:String length functions for single emoji characters evalu... by banthar on Friday March 26, 2021 @10:48AM (#26592808)
Defining string as a sequence of unicode codepoints is the mistake.

Nobody ever cares about unicode codepoints. You either want the number of bytes or the width of the string on screen.

UTF-32 codepoints waste space and give you neither.

Re:String length functions for single emoji characters evalu... by stkdump on Friday March 26, 2021 @02:25PM (#26595258)
The width on the screen is in pixels. Yes, I find monospace fonts increasingly pointless.