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