diff options
| author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2025-07-05 00:00:00 +0000 |
|---|---|---|
| committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2025-07-05 19:27:33 +0500 |
| commit | 395149956d696e6e3099d8b76d797437f94a6942 (patch) | |
| tree | 6ed5013a637078ae2dfdc4acf1ad93bf29cea356 /CPP/Windows/FileName.h | |
| parent | e5431fa6f5505e385c6f9367260717e9c47dc2ee (diff) | |
| download | 7zip-25.00.tar.gz 7zip-25.00.tar.bz2 7zip-25.00.zip | |
25.0025.00
Diffstat (limited to 'CPP/Windows/FileName.h')
| -rw-r--r-- | CPP/Windows/FileName.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/CPP/Windows/FileName.h b/CPP/Windows/FileName.h index 219b656..ce26e78 100644 --- a/CPP/Windows/FileName.h +++ b/CPP/Windows/FileName.h | |||
| @@ -25,13 +25,13 @@ bool IsDrivePath(const wchar_t *s) throw(); // first 3 chars are drive chars li | |||
| 25 | 25 | ||
| 26 | bool IsAltPathPrefix(CFSTR s) throw(); /* name: */ | 26 | bool IsAltPathPrefix(CFSTR s) throw(); /* name: */ |
| 27 | 27 | ||
| 28 | #if defined(_WIN32) && !defined(UNDER_CE) | ||
| 29 | |||
| 30 | extern const char * const kSuperPathPrefix; /* \\?\ */ | 28 | extern const char * const kSuperPathPrefix; /* \\?\ */ |
| 31 | const unsigned kDevicePathPrefixSize = 4; | 29 | const unsigned kDevicePathPrefixSize = 4; |
| 32 | const unsigned kSuperPathPrefixSize = 4; | 30 | const unsigned kSuperPathPrefixSize = 4; |
| 33 | const unsigned kSuperUncPathPrefixSize = kSuperPathPrefixSize + 4; | 31 | const unsigned kSuperUncPathPrefixSize = kSuperPathPrefixSize + 4; |
| 34 | 32 | ||
| 33 | #if defined(_WIN32) && !defined(UNDER_CE) | ||
| 34 | |||
| 35 | bool IsDevicePath(CFSTR s) throw(); /* \\.\ */ | 35 | bool IsDevicePath(CFSTR s) throw(); /* \\.\ */ |
| 36 | bool IsSuperUncPath(CFSTR s) throw(); /* \\?\UNC\ */ | 36 | bool IsSuperUncPath(CFSTR s) throw(); /* \\?\UNC\ */ |
| 37 | bool IsNetworkPath(CFSTR s) throw(); /* \\?\UNC\ or \\SERVER */ | 37 | bool IsNetworkPath(CFSTR s) throw(); /* \\?\UNC\ or \\SERVER */ |
| @@ -86,6 +86,15 @@ int FindAltStreamColon(CFSTR path) throw(); | |||
| 86 | bool IsAbsolutePath(const wchar_t *s) throw(); | 86 | bool IsAbsolutePath(const wchar_t *s) throw(); |
| 87 | unsigned GetRootPrefixSize(const wchar_t *s) throw(); | 87 | unsigned GetRootPrefixSize(const wchar_t *s) throw(); |
| 88 | 88 | ||
| 89 | #ifndef _WIN32 | ||
| 90 | /* GetRootPrefixSize_WINDOWS() is called in linux, but it parses path by windows rules. | ||
| 91 | It supports only paths system (linux) slash separators (STRING_PATH_SEPARATOR), | ||
| 92 | It doesn't parses paths with backslash (windows) separators. | ||
| 93 | "c:/dir/file" is supported. | ||
| 94 | */ | ||
| 95 | unsigned GetRootPrefixSize_WINDOWS(const wchar_t *s) throw(); | ||
| 96 | #endif | ||
| 97 | |||
| 89 | #ifdef Z7_LONG_PATH | 98 | #ifdef Z7_LONG_PATH |
| 90 | 99 | ||
| 91 | const int kSuperPathType_UseOnlyMain = 0; | 100 | const int kSuperPathType_UseOnlyMain = 0; |
