Changeset 253
- Timestamp:
- May 17, 2007, 8:07:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/String.ab
r246 r253 458 458 459 459 End If 460 Insert .ReSize(m_Length + length)460 Insert = New String(m_Length + length) 461 461 memcpy(Insert.Chars, Chars, SizeOf (StrChar) * startIndex) 462 462 memcpy(VarPtr(Insert.Chars[startIndex]), text, SizeOf (StrChar) * length) … … 484 484 End If 485 485 486 Remove .ReSize(startIndex)486 Remove = New String(startIndex) 487 487 memcpy(Remove.Chars, This.Chars, SizeOf (StrChar) * startIndex) 488 488 End Function … … 493 493 End If 494 494 495 Remove .ReSize(m_Length - count)495 Remove = New String(m_Length - count) 496 496 memcpy(Remove.Chars, This.Chars, SizeOf (StrChar) * startIndex) 497 497 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.