• 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, bool useBackslashReplacement = false);
17 void NormalizeSlashes_in_FileName_for_OsPath(wchar_t *s, unsigned len);
18 void NormalizeSlashes_in_FileName_for_OsPath(UString &name);
19 
20 bool HasTailSlash(const AString &name, UINT codePage);
21 
22 #ifdef _WIN32
WinPathToOsPath(const UString & name)23   inline UString WinPathToOsPath(const UString &name)  { return name; }
24 #else
25   UString WinPathToOsPath(const UString &name);
26 #endif
27 
28 }}
29 
30 #endif
31