Expand description
Shared text encoding helpers for binary format parsers/writers.
Structs§
- Decode
Text Error - Error returned when strict byte decoding encounters malformed input.
- Encode
Text Error - Error returned when strict text encoding would lose information.
- Language
Encoding Error - Error returned when a language ID does not map to a supported text encoding.
Enums§
- Text
Encoding - Text encodings currently used by supported KotOR formats.
Functions§
- decode_
text - Decodes bytes into Unicode text.
- decode_
text_ strict - Decodes bytes into Unicode text using strict lossless behavior.
- encode_
text - Encodes Unicode text into bytes using strict lossless behavior.
- text_
encoding_ for_ language - Resolves the text encoding for a KotOR language ID.