---------------------------------------------------------------------------
| 47 | |
| 48 | //--------------------------------------------------------------------------- |
| 49 | void Pac_Convert(Ztring& ToConvert, const codepage& CodePage) { |
| 50 | auto Table = CodePage.List - 0x20; |
| 51 | auto Table_Size = CodePage.Size + 0x20; |
| 52 | for (auto& Item : ToConvert) { |
| 53 | if (Item >= 0x20 && Item < Table_Size && Table[Item]) { |
| 54 | Item = Table[Item]; |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | //--------------------------------------------------------------------------- |
| 60 | enum Pac_format { |