|
libeditwl
Lightweight C++ library for Nintendo DS(i) formats
|
Classes | |
| struct | DataSection |
| struct | Header |
| struct | InfoSection |
| struct | Message |
| struct | MessageEscape |
| struct | MessageIdSection |
| struct | MessageToken |
Public Types | |
| enum class | Encoding : u8 { CP1252 = 1 , UTF16 = 2 , ShiftJIS = 3 , UTF8 = 4 } |
| enum class | MessageTokenType : u8 { Text , Escape } |
Public Member Functions | |
| BMG (const BMG &)=delete | |
| BMG (BMG &&)=default | |
| bool | HasMessageIds () |
| void | CreateFrom (const Encoding enc, const bool has_message_ids, const size_t attr_size, const std::vector< Message > &msgs, const u32 file_id) |
| Result | ReadValidateFrom (fs::File &rf) override |
| Result | ReadAllFrom (fs::File &rf) override |
| Result | WriteTo (fs::File &wf) override |
Public Member Functions inherited from twl::fs::FileFormat | |
| Result | ReadFrom (File &rf) |
Static Public Member Functions | |
| static constexpr size_t | GetCharacterSize (const Encoding enc) |
| static constexpr bool | IsValidEncoding (const Encoding enc) |
Public Attributes | |
| Header | header |
| InfoSection | info |
| DataSection | data |
| std::optional< MessageIdSection > | msg_id |
| std::vector< Message > | messages |
Implements twl::fs::FileFormat.
Implements twl::fs::FileFormat.
Implements twl::fs::FileFormat.