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

You can also just over-allocate to avoid having to call it twice, or do some really basic heuristics to fast path the call (it's very specific UTF-8 sequences that need more than 2 bytes in UTF-16).


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

Search: