Expand description
Handles strings represented by the PMD character encoding.
Save file strings have one byte per character and are encoded using a custom character encoding, which is a mix of ASCII, Unicode and special sequences. Special sequences are wrapped in square brackets.
Example: The byte representation for the sequence Abcd[END] will be [0x41, 0x62, 0x63, 0x64, 0x00].
The character [ is not a valid PMD character, making parsing special sequences easier.
See https://projectpokemon.org/home/docs/mystery-dungeon-nds/explorers-of-sky-save-structure-r62 for more information.
Structs§
- PmdChar
- A single PMD-encoded character. Holds both the PMD encoded byte and its UTF-8 representation.
- PmdString
- A string represented by the PMD character encoding, backed by an
ArrayVec. Save file strings (team names, Pokémon names) have 10 byte memory location. The game stops displaying the strings when it reaches a null byte.