Utf16Len
#func Utf16Len(s: str): intReturns the number of UTF-16 units in the string. For most scripts this equals the number of characters, but each emoji counts as two.
import text
func main:
s := "salam 😀"
println s.Len(), s.CharCount(), text.Utf16Len(s)
u := text.ToUtf16(s)
println text.Utf16UnitAt(u, 0), text.Utf16UnitAt(u, 6)
println text.FromUtf16(u)
end10 7 8 115 55357 salam 😀