Class: CharDet::GB18030Prober
- Inherits:
-
MultiByteCharSetProber
- Object
- CharSetProber
- MultiByteCharSetProber
- CharDet::GB18030Prober
- Defined in:
- lib/rchardet/gb18030prober.rb
Instance Attribute Summary
Attributes inherited from CharSetProber
Instance Method Summary collapse
- #get_charset_name ⇒ Object
-
#initialize ⇒ GB18030Prober
constructor
A new instance of GB18030Prober.
Methods inherited from MultiByteCharSetProber
#feed, #get_confidence, #reset
Methods inherited from CharSetProber
#feed, #filter_high_bit_only, #filter_with_english_letters, #filter_without_english_letters, #get_confidence, #get_state, #reset
Constructor Details
#initialize ⇒ GB18030Prober
Returns a new instance of GB18030Prober.
31 32 33 34 35 36 |
# File 'lib/rchardet/gb18030prober.rb', line 31 def initialize super @codingSM = CodingStateMachine.new(GB18030SMModel) @distributionAnalyzer = GB18030DistributionAnalysis.new() reset() end |
Instance Method Details
#get_charset_name ⇒ Object
38 39 40 |
# File 'lib/rchardet/gb18030prober.rb', line 38 def get_charset_name return "GB18030" end |