CharSetProber
# File lib/tmail/vendor/rchardet-1.3/lib/rchardet/utf8prober.rb, line 49 def feed(aBuf) aBuf.each_byte do |b| c = b.chr codingState = @_mCodingSM.next_state(c) if codingState == EError @_mState = ENotMe break elsif codingState == EItsMe @_mState = EFoundIt break elsif codingState == EStart if @_mCodingSM.get_current_charlen() >= 2 @_mNumOfMBChar += 1 end end end if get_state() == EDetecting if get_confidence() > SHORTCUT_THRESHOLD @_mState = EFoundIt end end return get_state() end
# File lib/tmail/vendor/rchardet-1.3/lib/rchardet/utf8prober.rb, line 45 def get_charset_name return "utf-8" end
Generated with the Darkfish Rdoc Generator 2.