Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don't you want grapheme clusters for cursor positions?

Length in encoded form can be found after encoding by checking the length of the binary content I guess.

I think for historical reasons access to codepoints can be useful, but it's rarely what one wants.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: