instance method get_confidence

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

get_confidence()

No documentation comment.

Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/utf8prober.rb, line 75
    def get_confidence
      unlike = 0.99
      if @_mNumOfMBChar < 6
        for i in (0...@_mNumOfMBChar)
          unlike = unlike * ONE_CHAR_PROB
        end
        return 1.0 - unlike
      else
        return unlike
      end
    end

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

Defined in CharDet::UTF8Prober

Type at least 2 characters to search.

↑↓ navigate · open · esc close