Changeset 497 for trunk/Include/Classes/System/IO/Path.ab
- Timestamp:
- Mar 28, 2008, 5:43:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/IO/Path.ab
r469 r497 10 10 Class Path 11 11 Public 12 Static Const AltDirectorySeparatorChar = &H2F As StrChar '/13 Static Const DirectorySeparatorChar = &H5C As StrChar '\14 Static Const PathSeparator = &H3B As StrChar ';15 Static Const VolumeSeparatorChar = &H3A As StrChar ':12 Static Const AltDirectorySeparatorChar = &H2F As Char '/ 13 Static Const DirectorySeparatorChar = &H5C As Char '\ 14 Static Const PathSeparator = &H3B As Char '; 15 Static Const VolumeSeparatorChar = &H3A As Char ': 16 16 17 17 '---------------------------------------------------------------- … … 135 135 If IsPathRooted(path) Then 136 136 If path.Contains(UniformNamingConventionString) Then 137 Return path.Remove(path.IndexOf(DirectorySeparatorChar, 137 Return path.Remove(path.IndexOf(DirectorySeparatorChar, 138 138 UniformNamingConventionString.Length) + 1) 139 139 Else … … 214 214 215 215 Private 216 Static Const ExtensionSeparatorChar = &H2E As StrChar216 Static Const ExtensionSeparatorChar = &H2E As Char 217 217 Static Const InvalidPathChars = Ex"\q<>|\0\t" As String 218 218 Static Const UniformNamingConventionString = "\\" As String … … 258 258 */ 259 259 Static Function GetLastSeparatorIndex(path As String) As Long 260 Return System.Math.Max(path.LastIndexOf(DirectorySeparatorChar), 260 Return System.Math.Max(path.LastIndexOf(DirectorySeparatorChar), 261 261 path.LastIndexOf(AltDirectorySeparatorChar)) As Long 262 262 End Function
Note:
See TracChangeset
for help on using the changeset viewer.