00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 */ 00004 00005 #ifndef __WINDOWS_FILENAME_H 00006 #define __WINDOWS_FILENAME_H 00007 00008 #include "String.h" 00009 00010 namespace NWindows { 00011 namespace NFile { 00012 namespace NName { 00013 00014 const TCHAR kDirDelimiter = '\\'; 00015 const TCHAR kAnyStringWildcard = '*'; 00016 00017 void NormalizeDirPathPrefix(CSysString &dirPath); 00018 #ifndef _UNICODE 00019 void NormalizeDirPathPrefix(UString &dirPath); 00020 #endif 00021 00022 namespace NPathType 00023 { 00024 enum EEnum 00025 { 00026 kLocal, 00027 kUNC 00028 }; 00029 EEnum GetPathType(const UString &path); 00030 } 00031 00032 struct CParsedPath 00033 { 00034 UString Prefix; 00035 UStringVector PathParts; 00036 void ParsePath(const UString &path); 00037 UString MergePath() const; 00038 }; 00039 00040 void SplitNameToPureNameAndExtension(const UString &fullName, 00041 UString &pureName, UString &extensionDelimiter, UString &extension); 00042 00043 }}} 00044 00045 #endif
1.5.6