@mathias I'm having conscience issues… What do you think? Is this acceptable?
strLength('\uDC00\uDC00')
> 1
strLength('\uD800\uD800')
> 2
Replying to @RobbertAtWork
@RobbertAtWork If performance is critical I guess it’s acceptable. Lone surrogates shouldn’t occur anyhow. Depends on where input comes from
9:55 AM - 7 Feb 2014
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.