instance method feed

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

feed(aBuf)

No documentation comment.

Parameters

aBuf req
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/latin1prober.rb, line 110
    def feed(aBuf)
      aBuf = filter_with_english_letters(aBuf)
      aBuf.each_byte do |b|
        c = b.chr
        charClass = Latin1_CharToClass[c[0]]
        freq = Latin1ClassModel[(@_mLastCharClass * CLASS_NUM) + charClass]
        if freq == 0
          @_mState = ENotMe
          break
        end
        @_mFreqCounter[freq] += 1
        @_mLastCharClass = charClass
      end

      return get_state()
    end

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/latin1prober.rb line 110 · View on GitHub · Improve this page · Find usages on GitHub

Defined in CharDet::Latin1Prober

Type at least 2 characters to search.

↑↓ navigate · open · esc close