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);

Constants

utf8_to_utf16 constant (unknown)
utf16_to_utf8 constant (unknown)