Ignore:
Timestamp:
Apr 6, 2009, 9:14:03 PM (16 years ago)
Author:
イグトランス (egtra)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.