# File 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