ZipCompatibility Namespace Reference
|
Enumerations |
| enum | ZipPlatforms {
zcDosFat,
zcAmiga,
zcVaxVms,
zcUnix,
zcVmCms,
zcAtari,
zcOs2Hpfs,
zcMacintosh,
zcZsystem,
zcCpm,
zcNtfs
} |
Functions |
| void | ConvertBufferToString (CZipString &szString, const CZipAutoBuffer &buffer, UINT uCodePage) |
| void | ConvertStringToBuffer (LPCTSTR lpszString, CZipAutoBuffer &buffer, UINT uCodePage) |
| DWORD | ConvertToSystem (DWORD uAttr, int iFromSystem, int iToSystem) |
| bool | IsPlatformSupported (int iCode) |
| void | SlashBackslashChg (CZipString &szFileName, bool bReplaceSlash) |
Detailed Description
Includes functions that provide support for the proper conversion of attributes and filenames between different system platforms.
Enumeration Type Documentation
Function Documentation
| void ZipCompatibility::ConvertBufferToString |
( |
CZipString & |
szString, |
|
|
const CZipAutoBuffer & |
buffer, |
|
|
UINT |
uCodePage | |
|
) |
| | |
| void ZipCompatibility::ConvertStringToBuffer |
( |
LPCTSTR |
lpszString, |
|
|
CZipAutoBuffer & |
buffer, |
|
|
UINT |
uCodePage | |
|
) |
| | |
| DWORD ZipCompatibility::ConvertToSystem |
( |
DWORD |
uAttr, |
|
|
int |
iFromSystem, |
|
|
int |
iToSystem | |
|
) |
| | |
Converts the system attributes between different system platforms.
- Parameters:
-
| uAttr | The attributes to convert. |
| iFromSystem | The system code to convert uAttr from. |
| iToSystem | The system code to convert uAttr to. |
- Returns:
- The converted attributes.
- Note:
- Throws exceptions.
- See also:
- ZipPlatforms
| bool ZipCompatibility::IsPlatformSupported |
( |
int |
iCode |
) |
|
Checks whether the system with the given code is supported by the ZipArchive Library.
- Parameters:
-
- Returns:
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.
- Parameters:
-
| szFileName | The filename to have the path separators changed. |
| bReplaceSlash | If true, changes slash to backslash. If false, changes backslash to slash. |