# File lib/UTF8Prober.rb, line 54 def feed(aBuf) aLen = aBuf.length for i in 0...aLen codingState = @_mCodingSM.next_state(aBuf[i]) if codingState == :Error @_mState = :NotMe break elsif codingState == :ItsMe @_mState = :FoundIt break elsif codingState == :Start if @_mCodingSM.get_current_charlen() >= 2: @_mNumOfMBChar += 1 end end end if get_state() == :Detecting if get_confidence() > SHORTCUT_THRESHOLD @_mState = :FoundIt end end return get_state() end