MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / Pac_Convert

Function Pac_Convert

Source/MediaInfo/Text/File_Pac.cpp:49–57  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

47
48//---------------------------------------------------------------------------
49void 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//---------------------------------------------------------------------------
60enum Pac_format {

Callers 1

Data_ParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected