Class: CharDet::GB2312Prober

Inherits:
MultiByteCharSetProber show all
Defined in:
lib/rchardet/gb2312prober.rb

Instance Attribute Summary

Attributes inherited from CharSetProber

#active

Instance Method Summary collapse

Methods inherited from MultiByteCharSetProber

#confidence, #feed, #reset

Methods inherited from CharSetProber

#confidence, #filter_high_bit_only, #filter_with_english_letters, #filter_without_english_letters, #reset, #result, #state

Constructor Details

#initialize ⇒ GB2312Prober

Returns a new instance of GB2312Prober.



31
32
33
34
35
36
# File 'lib/rchardet/gb2312prober.rb', line 31

def initialize
  super
  @_mCodingSM = CodingStateMachine.new(GB2312SMModel)
  @_mDistributionAnalyzer = GB2312DistributionAnalysis.new()
  reset()
end

Instance Method Details

#charset_name ⇒ Object



38
39
40
# File 'lib/rchardet/gb2312prober.rb', line 38

def charset_name
  return "GB2312"
end