Structs§
- Decoder
- Encoder iterator, converting unicode chars into bytes based on the contained decoding callable. Must be fallible because not all unicode codepoints are valid bytes.
- Encoder
- Encoder iterator, converting bytes into unicode chars based on the contained encoding callable.
Traits§
Functions§
- decode_
emoji - Decode function for emoji. All values are mapped as the inverse of encode_emoji. All other input chars map to None.
- decode_
papu - Decode function for printable-ascii-preserving Unicode. All values are mapped as the inverse of encode_papu. All other input chars map to None.
- encode_
emoji - Encode function for encoding to emoji.
0x00..=0x4Fis mapped to the range starting atU+1F370For some plants and foods.0x50..=0x8Fis mapped to the range starting atU+1F400for animals.0x90..=0xDFis mapped to the range starting atU+1F600for expressions and hand signs.0xE0..=0xFFis mapped to the range starting atU+1F910for more expressions and hand signs. - encode_
papu - Encode function for encoding to printable-ascii-preserving Unicode.
0x00..=0x1Fis mapped to the range starting atU+B0to map into the Latin-1 Supplement block in the first range that is 8-byte aligned and fully printable, skippingNBSPandSHY.0x20..=0x7Eare mapped to the same bytes as printable ASCII.0x7Fis arbitrarily mapped from ASCII ESC to §.0x80..=0xFFmapped to the range starting atU+100, Latin Extended-A, with the exception of0xC9, which is mapped arbitrarily to¤to avoid the deprecated character at that codepoint.