Module utf8

Source

Constants§

UTF8_REPLACEMENT_CHARACTER

Functions§

_first_char_of_utf8_string 🔒
first_char_of_utf8_string
Return a character (or for invalid part of the string, the replacement character) of a UTF-8 string as bytes, as well as the number of input bytes consumed. For valid UTF-8 input, the number of input bytes will always match the number of output bytes.
first_char_of_utf8_string_lossless
Return a character or invalid part of a UTF-8 string as bytes, as well as the number of input bytes consumed.
utf8_from_scalar