instance method feed

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

feed(aStr, aCharLen)

No documentation comment.

Parameters

aStr req
aCharLen req
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/chardistribution.rb, line 50
    def feed(aStr, aCharLen)
      # # """feed a character with known length"""
      if aCharLen == 2
        # we only care about 2-bytes character in our distribution analysis
        order = get_order(aStr)
      else
        order = -1
      end
      if order >= 0
        @_mTotalChars += 1
        # order is valid
        if order < @_mTableSize
          if 512 > @_mCharToFreqOrder[order]
            @_mFreqChars += 1
          end
        end
      end
    end

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

Defined in CharDet::CharDistributionAnalysis

Type at least 2 characters to search.

↑↓ navigate · open · esc close