diff options
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; |