std::core::string::conv

Public

Functions

NameDescription
conv::char16_to_utf8_unsafeConvert 1-2 UTF16 data points into UTF8.
conv::utf16to8_unsafeCopy an array of UTF16 data into an UTF8 buffer without bounds...
conv::utf8_codepoints
conv::utf8len_for_utf16Calculate the UTF8 length required to encode an UTF16 array.
conv::utf32to8Convert an UTF32 array to an UTF8 array.
conv::char32_to_utf16_unsafeConvert a code pointer into 1-2 UTF16 characters.
conv::char32_to_utf8_unsafe
conv::utf16len_for_utf8Calculate the UTF16 length required to encode a UTF8 array.
conv::utf16len_for_utf32
conv::utf32to8_unsafeCopy an array of UTF32 code points into an UTF8 buffer without bounds...
conv::utf8len_for_utf32Calculate the UTF8 length required to encode an UTF32 array.
conv::char32_to_utf8
conv::utf8to32Convert an UTF8 array to an UTF32 array.
conv::utf8_to_char32
conv::utf8to16_unsafeCopy an array of UTF8 data into an UTF16 buffer without bounds...
conv::utf8to32_unsafeCopy an array of UTF8 data into an UTF32 buffer without bounds...

Private

Globals

NameDescription
UTF16_SURROGATE_LOW_VALUE
UTF16_SURROGATE_CODEPOINT_MASK
UTF16_SURROGATE_HIGH_VALUE
UTF16_SURROGATE_MASK
UTF16_SURROGATE_OFFSET
UTF16_SURROGATE_GENERIC_VALUE
UTF16_SURROGATE_GENERIC_MASK
UTF16_SURROGATE_BITS