other-licenses/7zstub/src/Windows/FileName.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/other-licenses/7zstub/src/Windows/FileName.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +// Windows/FileName.h
     1.5 +
     1.6 +#ifndef __WINDOWS_FILENAME_H
     1.7 +#define __WINDOWS_FILENAME_H
     1.8 +
     1.9 +#include "../Common/String.h"
    1.10 +
    1.11 +namespace NWindows {
    1.12 +namespace NFile {
    1.13 +namespace NName {
    1.14 +
    1.15 +const TCHAR kDirDelimiter = CHAR_PATH_SEPARATOR;
    1.16 +const TCHAR kAnyStringWildcard = '*';
    1.17 +
    1.18 +void NormalizeDirPathPrefix(CSysString &dirPath); // ensures that it ended with '\\'
    1.19 +#ifndef _UNICODE
    1.20 +void NormalizeDirPathPrefix(UString &dirPath); // ensures that it ended with '\\'
    1.21 +#endif
    1.22 +
    1.23 +namespace NPathType
    1.24 +{
    1.25 +  enum EEnum
    1.26 +  {
    1.27 +    kLocal,
    1.28 +    kUNC
    1.29 +  };
    1.30 +  EEnum GetPathType(const UString &path);
    1.31 +}
    1.32 +
    1.33 +struct CParsedPath
    1.34 +{
    1.35 +  UString Prefix; // Disk or UNC with slash
    1.36 +  UStringVector PathParts;
    1.37 +  void ParsePath(const UString &path);
    1.38 +  UString MergePath() const;
    1.39 +};
    1.40 +
    1.41 +void SplitNameToPureNameAndExtension(const UString &fullName, 
    1.42 +    UString &pureName, UString &extensionDelimiter, UString &extension); 
    1.43 +
    1.44 +}}}
    1.45 +
    1.46 +#endif

mercurial