Enumerations | |
enum | ZipPlatforms { zcDosFat, zcAmiga, zcVaxVms, zcUnix, zcVmCms, zcAtari, zcOs2Hpfs, zcMacintosh, zcZsystem, zcCpm, zcTops20, zcNtfs, zcQDos, zcAcorn, ZcMvs, zcVfat, zcAtheOS, zcBeOS, zcTandem, zcTheos, zcMacDarwin } |
Functions | |
ZIP_API void | ConvertBufferToString (CZipString &szString, const CZipAutoBuffer &buffer, UINT uCodePage) |
ZIP_API void | ConvertStringToBuffer (LPCTSTR lpszString, CZipAutoBuffer &buffer, UINT uCodePage) |
ZIP_API DWORD | ConvertToSystem (DWORD uAttr, int iFromSystem, int iToSystem) |
ZIP_API UINT | GetDefaultCommentCodePage () |
ZIP_API UINT | GetDefaultCommentCodePage (int iPlatform) |
ZIP_API UINT | GetDefaultNameCodePage () |
ZIP_API UINT | GetDefaultNameCodePage (int iPlatform) |
ZIP_API UINT | GetDefaultPasswordCodePage (int iPlatform) |
ZIP_API bool | IsPlatformSupported (int iCode) |
void | SlashBackslashChg (CZipString &szFileName, bool bReplaceSlash) |
The codes of the compatibility of the file attribute information.
Definition at line 50 of file ZipCompatibility.h.
ZIP_API void ZipCompatibility::ConvertBufferToString | ( | CZipString & | szString, | |
const CZipAutoBuffer & | buffer, | |||
UINT | uCodePage | |||
) |
Converts the string stored in buffer using the given code page.
buffer | The buffer to convert the string from. | |
szString | The string to receive the result. | |
uCodePage | The code page used in conversion. |
ZIP_API void ZipCompatibility::ConvertStringToBuffer | ( | LPCTSTR | lpszString, | |
CZipAutoBuffer & | buffer, | |||
UINT | uCodePage | |||
) |
Converts the lpszString using the given code page.
lpszString | The string to convert from. | |
buffer | The buffer to receive the result. | |
uCodePage | The code page used in conversion. |
ZIP_API DWORD ZipCompatibility::ConvertToSystem | ( | DWORD | uAttr, | |
int | iFromSystem, | |||
int | iToSystem | |||
) |
Converts the system attributes between different system platforms.
uAttr | The attributes to convert. | |
iFromSystem | The system code to convert uAttr from. | |
iToSystem | The system code to convert uAttr to. |
ZIP_API UINT ZipCompatibility::GetDefaultCommentCodePage | ( | ) |
Returns the default comment code page for the current platform.
ZIP_API UINT ZipCompatibility::GetDefaultCommentCodePage | ( | int | iPlatform | ) |
Returns the default comment code page.
iPlatform | One of the ZipCompatibility::ZipPlatforms values. |
ZIP_API UINT ZipCompatibility::GetDefaultNameCodePage | ( | ) |
Returns the default filename code page for the current platform.
ZIP_API UINT ZipCompatibility::GetDefaultNameCodePage | ( | int | iPlatform | ) |
Returns the default filename code page for the given platform.
iPlatform | One of the ZipCompatibility::ZipPlatforms values. |
ZIP_API UINT ZipCompatibility::GetDefaultPasswordCodePage | ( | int | iPlatform | ) |
Returns the default password code page.
iPlatform | One of the ZipCompatibility::ZipPlatforms values. |
ZIP_API bool ZipCompatibility::IsPlatformSupported | ( | int | iCode | ) |
Checks whether the system with the given code is supported by the ZipArchive Library.
iCode | One of the ZipPlatforms values to check. |
true
, if supported; false
otherwise. void ZipCompatibility::SlashBackslashChg | ( | CZipString & | szFileName, | |
bool | bReplaceSlash | |||
) |
Changes the path separators from slash to backslash or vice-versa in szFileName.
szFileName | The filename to have the path separators changed. | |
bReplaceSlash | If true , changes slash to backslash. If false , changes backslash to slash. |