Changeset 702 for trunk


Ignore:
Timestamp:
2009/04/06 21:14:03 (3 years ago)
Author:
egtra
Message:

テキスト読み取り時、EOF周りの扱いの誤りを修正

Location:
trunk/ab5.0/ablib/src/Classes/System
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/IO/TextReader.ab

    r676 r702  
    2424            buf.Length = 0 
    2525            pos = 0 
    26             If Not Underflow() Then 
     26            Underflow() 
     27            If buf.Length = 0 Then 
    2728                Peek = -1 
    2829                Exit Function 
  • trunk/ab5.0/ablib/src/Classes/System/Text/Encoding.ab

    r695 r702  
    361361Class Decoder 
    362362Public 
    363     Function Decode(dst As Collections.Generic.List<WCHAR>, st As IO.Stream) As Boolean 
    364         Decode = DecodeImpl(dst, st) 
     363    /*! 
     364    @brief 復号する。 
     365    @param[out] dst 出力先 
     366    @param[in] s 入力元 
     367    @return sを最後 (EOF) まで読んだらFalse、まだあればTrue。 
     368    */ 
     369    Function Decode(dst As Collections.Generic.List<WCHAR>, s As IO.Stream) As Boolean 
     370        Decode = DecodeImpl(dst, s) 
    365371    End Function 
    366372 
     
    529535                If t = -1 Then 
    530536                    dst.Add(&hfffd As WCHAR) 
    531                     DecodeImpl = False 
    532                     Exit For 
     537                    Exit Function 
    533538                End If 
    534539                buf[1] = t As CHAR 
Note: See TracChangeset for help on using the changeset viewer.