• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Archive/Common/ItemNameUtils.h
2 
3 #ifndef __ARCHIVE_ITEM_NAME_UTILS_H
4 #define __ARCHIVE_ITEM_NAME_UTILS_H
5 
6 #include "../../../Common/MyString.h"
7 
8 namespace NArchive {
9 namespace NItemName {
10 
11 void ReplaceSlashes_OsToUnix(UString &name);
12 
13 UString GetOsPath(const UString &name);
14 UString GetOsPath_Remove_TailSlash(const UString &name);
15 
16 void ReplaceToOsSlashes_Remove_TailSlash(UString &name);
17 
18 bool HasTailSlash(const AString &name, UINT codePage);
19 
20 #ifdef _WIN32
WinPathToOsPath(const UString & name)21   inline UString WinPathToOsPath(const UString &name)  { return name; }
22 #else
23   UString WinPathToOsPath(const UString &name);
24 #endif
25 
26 }}
27 
28 #endif
29