Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor

Showing 2 changed files with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +1 1  lib/UTF8Prober.rb
  2. +4 4 lib/UniversalDetector.rb
2  lib/UTF8Prober.rb
@@ -81,7 +81,7 @@ def feed(aBuf)
81 81 def get_confidence
82 82 unlike = 0.99
83 83 if @_mNumOfMBChar < 6
84   - for i in 0...@_mNumOfMBChar
  84 + @_mNumOfMBChar.times do
85 85 unlike = unlike * ONE_CHAR_PROB
86 86 end
87 87 return 1.0 - unlike
8 lib/UniversalDetector.rb
@@ -28,10 +28,10 @@
28 28 # 02110-1301 USA
29 29 ######################### END LICENSE BLOCK #########################
30 30
31   -# require "EscCharSetProber"
32   -# require "MBCSGroupProber"
33   -# require "SBCSGroupProber"
34   -# require "Latin1Prober"
  31 +require "EscCharSetProber"
  32 +require "MBCSGroupProber"
  33 +require "SBCSGroupProber"
  34 +require "Latin1Prober"
35 35 require "singleton"
36 36
37 37 module UniversalDetector

No commit comments for this range

Something went wrong with that request. Please try again.