Module encoding/utf16
encoding/utf16
UTF-8 to UTF-16 conversion and vice versa.
Converts between Yo's UTF-8 str and UTF-16 code units (ArrayList(u16)).
Example
{ utf8_to_utf16, utf16_to_utf8 } :: import "std/encoding/utf16";
words := utf8_to_utf16("hello");
s := utf16_to_utf8(words);
Functions
utf8_to_utf16
function
utf16_to_utf8
function