• 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 ReplaceToOsPathSeparator(wchar_t *s);
12 
13   UString MakeLegalName(const UString &name);
14   UString GetOSName(const UString &name);
15   UString GetOSName2(const UString &name);
16   void ConvertToOSName2(UString &name);
17   bool HasTailSlash(const AString &name, UINT codePage);
18 
19   #ifdef _WIN32
WinNameToOSName(const UString & name)20   inline UString WinNameToOSName(const UString &name)  { return name; }
21   #else
22   UString WinNameToOSName(const UString &name);
23   #endif
24 
25 }}
26 
27 #endif
28