I see, that makes more sense.
That wouldn’t be sufficient for 𐐨 (U+10428), since it’s made up of two UTF-16 code units.
(this is just one example; in general working with Unicode strings is complicated)
2 Likes