Enumerations |
| enum | InternalFileAttributes {
attROnly = 0x01,
attHidd = 0x02,
attSys = 0x04,
attDir = 0x10,
attArch = 0x20
} |
| enum | ZipPlatforms {
zcDosFat,
zcAmiga,
zcVaxVms,
zcUnix,
zcVmCms,
zcAtari,
zcOs2Hpfs,
zcMacintosh,
zcZsystem,
zcCpm,
zcTops20,
zcNtfs,
zcQDos,
zcAcorn,
ZcMvs,
zcVfat,
zcAtheOS,
zcBeOS,
zcTandem,
zcTheos,
zcMacDarwin,
zcLast
} |
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 DWORD | GetAsInternalAttributes (DWORD uAttr, int iFromSystem) |
| ZIP_API UINT | GetDefaultCommentCodePage (int iPlatform) |
| ZIP_API UINT | GetDefaultCommentCodePage () |
| ZIP_API UINT | GetDefaultNameCodePage () |
| ZIP_API UINT | GetDefaultNameCodePage (int iPlatform) |
| ZIP_API UINT | GetDefaultPasswordCodePage (int iPlatform) |
| ZIP_API bool | IsPlatformSupported (int iCode) |
| ZIP_API void | NormalizePathSeparators (CZipString &szFileName) |
| ZIP_API 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
Platform independent attributes.
- Enumerator:
| attROnly |
Read-only attribute.
|
| attHidd |
Hidden attribute.
|
| attSys |
System attribute.
|
| attDir |
Directory attribute.
|
| attArch |
Archived attribute.
|
The codes of the compatibility of the file attribute information.
- See also:
- CZipArchive::GetSystemCompatibility
-
CZipFileHeader::GetSystemCompatibility
-
ZipPlatform::GetSystemID
- Enumerator:
| zcDosFat |
MS-DOS and OS/2 (FAT / VFAT / FAT32 file systems)
|
| zcAmiga |
Amiga.
|
| zcVaxVms |
VAX/VMS.
|
| zcUnix |
Unix / Linux.
|
| zcVmCms |
VM/CMS.
|
| zcAtari |
Atari ST.
|
| zcOs2Hpfs |
OS/2 H.P.F.S.
|
| zcMacintosh |
Macintosh.
|
| zcZsystem |
Z-System.
|
| zcCpm |
CP/M.
|
| zcTops20 |
TOPS-20.
|
| zcNtfs |
Windows NTFS.
|
| zcQDos |
SMS/QDOS.
|
| zcAcorn |
Acorn RISC OS.
|
| ZcMvs |
MVS.
|
| zcVfat |
Win32 VFAT.
|
| zcAtheOS |
AtheOS.
|
| zcBeOS |
BeOS.
|
| zcTandem |
Tandem NSK.
|
| zcTheos |
Theos.
|
| zcMacDarwin |
Mac OS/X (Darwin)
|
| zcLast |
For the internal use.
|
Function Documentation
| ZIP_API void ZipCompatibility::ConvertBufferToString |
( |
CZipString & |
szString, |
|
|
const CZipAutoBuffer & |
buffer, |
|
|
UINT |
uCodePage |
|
) |
| |
Converts the string stored in buffer using the given code page.
- Parameters:
-
| 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.
- Parameters:
-
| 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.
- 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.
- See also:
- ZipPlatforms
| ZIP_API UINT ZipCompatibility::GetDefaultCommentCodePage |
( |
int |
iPlatform ) |
|
Returns the default comment code page.
- Parameters:
-
- Returns:
- The default comment code page.
| ZIP_API UINT ZipCompatibility::GetDefaultCommentCodePage |
( |
) |
|
Returns the default comment code page for the current platform.
- Returns:
- The default comment code page.
| ZIP_API UINT ZipCompatibility::GetDefaultNameCodePage |
( |
) |
|
Returns the default filename code page for the current platform.
- Returns:
- The default filename code page.
| ZIP_API UINT ZipCompatibility::GetDefaultNameCodePage |
( |
int |
iPlatform ) |
|
Returns the default filename code page for the given platform.
- Parameters:
-
- Returns:
- The default filename code page.
| ZIP_API UINT ZipCompatibility::GetDefaultPasswordCodePage |
( |
int |
iPlatform ) |
|
Returns the default password code page.
- Parameters:
-
- Returns:
- The default password code page.
| ZIP_API 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.
| ZIP_API void ZipCompatibility::NormalizePathSeparators |
( |
CZipString & |
szFileName ) |
|
Normalizes path separators to the default character used by the current platform.
- Parameters:
-
| szFileName | The filename to have the path separators normalized. |
| ZIP_API 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. |