2 ms·
None of the mainstream ones that I can think of. Which is really unfortunate, not the least because the defaults are all over the place - usually it's either by
by int_19h 10y ago
None of the mainstream ones that I can think of. Which is really unfortunate, not the least because the defaults are all over the place - usually it's either bytes (when strings are UTF-8) or code units (when strings are UTF-16 - note, code units, not code points, so surrogate pairs count as 2!). Occasionally it's genuine code points, as in Python. Which, I think, goes to show why it's such a mess.