Ignore:
Timestamp:
Feb 28, 2008, 1:39:16 AM (17 years ago)
Author:
イグトランス (egtra)
Message:

Consoleをスレッド安全化(クリティカルセクション使用)。
Exception.HResultをPublicにした。
StringBuilder.Replaceが正しく機能しない問題を解消。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/System/Text/StringBuilder.ab

    r388 r435  
    387387
    388388        Dim s = New StringBuilder(capacity, maxCapacity)
    389         Dim curPos = 0 As Long
     389        Dim curPos = start
     390        Dim last = start + count
    390391        Do
    391392            Dim nextPos = ActiveBasic.Strings.ChrFind(VarPtr(chars[curPos]) As *StrChar, size As SIZE_T, StrPtr(oldStr), oldStr.Length As SIZE_T) As Long
    392             If nextPos = -1 As SIZE_T Then
    393                 Exit Sub
     393            If nextPos = -1 As SIZE_T Or curPos > last Then
     394                s.appendCore(chars, curPos, size - curPos)
     395                Exit Do
    394396            End If
    395397           
Note: See TracChangeset for help on using the changeset viewer.