class CharDet::CharSetProber

Attributes

active[RW]

Public Class Methods

new() click to toggle source
# File lib/rchardet/charsetprober.rb, line 33
def initialize
end

Public Instance Methods

feed(aBuf) click to toggle source
# File lib/rchardet/charsetprober.rb, line 44
def feed(aBuf)
end
filter_high_bit_only(aBuf) click to toggle source
# File lib/rchardet/charsetprober.rb, line 55
def filter_high_bit_only(aBuf)
  newBuf = aBuf.gsub(/([\x00-\x7F])+/, ' ')
  return newBuf
end
filter_with_english_letters(aBuf) click to toggle source
# File lib/rchardet/charsetprober.rb, line 65
def filter_with_english_letters(aBuf)
  # TODO
  return aBuf
end
filter_without_english_letters(aBuf) click to toggle source
# File lib/rchardet/charsetprober.rb, line 60
def filter_without_english_letters(aBuf)
  newBuf = aBuf.gsub(/([A-Za-z])+/,' ')
  return newBuf
end
get_charset_name() click to toggle source
# File lib/rchardet/charsetprober.rb, line 40
def get_charset_name
  return nil
end
get_confidence() click to toggle source
# File lib/rchardet/charsetprober.rb, line 51
def get_confidence
  return 0.0
end
get_state() click to toggle source
# File lib/rchardet/charsetprober.rb, line 47
def get_state
  return @state
end
reset() click to toggle source
# File lib/rchardet/charsetprober.rb, line 36
def reset
  @state = EDetecting
end