# File lib/EscCharSetProber.rb, line 70 def feed(aBuf) for c in aBuf for codingSM in @_mCodingSM unless codingSM then continue end unless codingSM.active then continue end codingState = codingSM.next_state(c) if codingState == :Error codingSM.active = false @_mActiveSM -= 1 if @_mActiveSM <= 0 @_mState = :NotMe return get_state() end elsif codingState == :ItsMe @_mState = :FoundIt @_mDetectedCharset = codingSM.get_coding_state_machine() return get_state() end end end return get_state() end