Ignore:
Timestamp:
Mar 5, 2007, 8:48:19 PM (18 years ago)
Author:
OverTaker
Message:

String変更による修整。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/IO/Path.ab

    r125 r136  
    77
    88    Static Function GetFileName(path As String) As String
    9         path.Remove(0, getLastSeparatorPosision(path) + 1)
    10         Return path
     9        Return path.Remove(0, getLastSeparatorPosision(path) + 1)
    1110    End Function
    1211
     
    1918        If extPos = -1 Then Return ""
    2019
    21         fileName.Remove(extPos)
    22         Return fileName
     20        Return fileName.Remove(extPos)
    2321    End Function
    2422
     
    3634        If extPos = -1 Then Return ""
    3735
    38         path.Remove(0, extPos)
    39         Return path
     36        Return path.Remove(0, extPos)
    4037    End Function
    4138   
     
    4441        extPos = getExtensionPosition(path)
    4542        If extPos => 0 Then
    46             path.Remove(extPos)
     43            path = path.Remove(extPos)
    4744        End If
    4845
     
    9693        If lastSepPos = -1 Then Return ""
    9794
    98         path.Remove(lastSepPos)
     95        path = path.Remove(lastSepPos)
    9996        If path.Length <= 3 Then
    10097            If IsPathRooted(path) Then Return ""
     
    105102    Static Function GetPathRoot(path As String) As String
    106103        If IsPathRooted(path) Then
    107             path.Remove(3)
    108             Return path
     104            Return path.Remove(3)
    109105        Else
    110106            Return ""
     
    145141        Dim lastSepPos As Long
    146142        Dim dirSepChar As String(Chr$(DirectorySeparatorChar))
    147         Dim altDirSepChar As String(Chr$(AltDirectorySeparatorChar))
    148143        Dim volSepChar As String(Chr$(VolumeSeparatorChar))
    149144        lastSepPos = path.LastIndexOf(dirSepChar)
Note: See TracChangeset for help on using the changeset viewer.