Ignore:
Timestamp:
May 17, 2007, 8:07:54 PM (18 years ago)
Author:
OverTaker
Message:

Remove,Insertメソッドのバグ修整。時間がないので適当な修整になってしまいました。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/String.ab

    r246 r253  
    458458
    459459            End If
    460             Insert.ReSize(m_Length + length)
     460            Insert = New String(m_Length + length)
    461461            memcpy(Insert.Chars, Chars, SizeOf (StrChar) * startIndex)
    462462            memcpy(VarPtr(Insert.Chars[startIndex]), text, SizeOf (StrChar) * length)
     
    484484            End If
    485485
    486             Remove.ReSize(startIndex)
     486            Remove = New String(startIndex)
    487487            memcpy(Remove.Chars, This.Chars, SizeOf (StrChar) * startIndex)
    488488        End Function
     
    493493            End If
    494494
    495             Remove.ReSize(m_Length - count)
     495            Remove = New String(m_Length - count)
    496496            memcpy(Remove.Chars, This.Chars, SizeOf (StrChar) * startIndex)
    497497            memcpy(VarPtr(Remove.Chars[startIndex]), VarPtr(This.Chars[startIndex + count]), SizeOf (StrChar) * (m_Length - startIndex - count))
Note: See TracChangeset for help on using the changeset viewer.