# LLM Prompt for Documentation ## Documentation ### Utf16 #### from_str **Type Annotation** ```roc Str -> Result (List U16) [BadUtf8 Utf8.Utf8Problem] ``` **Description** Convert a Str to Utf-16. #### from_str_le **Type Annotation** ```roc Str -> Result (List U16) [BadUtf8 Utf8.Utf8Problem] ``` **Description** Convert a Str to Utf-16 using little-endian byte order. #### from_str_be **Type Annotation** ```roc Str -> Result (List U16) [BadUtf8 Utf8.Utf8Problem] ``` **Description** Convert a Str to Utf-16 using big-endian byte order. #### to_utf8 **Type Annotation** ```roc List U16 -> Result (List U8) [BadUtf16 Utf16Problem] ``` **Description** Convert Utf-16 to Utf-8. #### to_str **Type Annotation** ```roc List U16 -> Result Str [BadUtf16 Utf16Problem] ``` **Description** Convert Utf-16 to Str. #### from_utf8 **Type Annotation** ```roc List U8 -> Result (List U16) [BadUtf8 Utf8.Utf8Problem] ``` **Description** Convert Utf-8 to Utf-16. #### from_utf8_le **Type Annotation** ```roc List U8 -> Result (List U16) [BadUtf8 Utf8.Utf8Problem] ``` **Description** Convert Utf-8 to Utf-16 using little-endian byte order. #### from_utf8_be **Type Annotation** ```roc List U8 -> Result (List U16) [BadUtf8 Utf8.Utf8Problem] ``` **Description** Convert Utf-8 to Utf-16 using big-endian byte order. #### from_codepoints **Type Annotation** ```roc List U32 -> List U16 ``` **Description** Convert a list of unicode codepoints to a list of Utf-16 code units. #### to_codepoints **Type Annotation** ```roc List U16 -> Result (List U32) [BadUtf16 Utf16Problem] ``` **Description** Convert a list of Utf-16 codeunits to unicode codepoints.