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

Slicing strings is a difficult concept when dealing with Unicode because slice indices and lengths can come in multiple flavors, but the only flavor that makes sense (grapheme or grapheme cluster) is difficult to count.


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

Search: