blob: 79a36cd611b670e2bedb6d29a64b9eba16098d60 (
plain)
1
2
3
|
The [`unicode/utf16.RuneLen`](/pkg/unicode/utf16#RuneLen) function returns
the number of 16-bit words in the UTF-16 encoding of the rune. It returns -1
if the rune is not a valid value to encode in UTF-16.
|