Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 // Windows/FileName.h
3 #ifndef __WINDOWS_FILENAME_H
4 #define __WINDOWS_FILENAME_H
6 #include "../Common/String.h"
8 namespace NWindows {
9 namespace NFile {
10 namespace NName {
12 const TCHAR kDirDelimiter = CHAR_PATH_SEPARATOR;
13 const TCHAR kAnyStringWildcard = '*';
15 void NormalizeDirPathPrefix(CSysString &dirPath); // ensures that it ended with '\\'
16 #ifndef _UNICODE
17 void NormalizeDirPathPrefix(UString &dirPath); // ensures that it ended with '\\'
18 #endif
20 namespace NPathType
21 {
22 enum EEnum
23 {
24 kLocal,
25 kUNC
26 };
27 EEnum GetPathType(const UString &path);
28 }
30 struct CParsedPath
31 {
32 UString Prefix; // Disk or UNC with slash
33 UStringVector PathParts;
34 void ParsePath(const UString &path);
35 UString MergePath() const;
36 };
38 void SplitNameToPureNameAndExtension(const UString &fullName,
39 UString &pureName, UString &extensionDelimiter, UString &extension);
41 }}}
43 #endif