Module string

Module string 

Source
Expand description

Encoding and decoding between the private area encoding and bytes

Structs§

BadCodepoint
An invalid codepoint was encountered during decoding

Enums§

OutputByte
Type representing the output of a single char decode operation. This type is an iterator over 1 or 2 bytes. The None variant is used to signal that the iterator is empty.

Functions§

decode_char
Decode a single char from the wynntils private use area encoding scheme. This function returns 1 or 2 bytes or an error if the codepoint is not valid within the encoding scheme.
decode_chars
Decodes the bytes of a wynntils private area encoded string from an iterator of chars
decode_string
Decodes the bytes of a wynntils private area encoded string
encode_char
Encode a single char using the wynntils private use area encoding scheme
encode_string
Encode bytes into a string using the wynntils byte encoding scheme