home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_829 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  2.0 KB  |  47 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import constants
  5. import re
  6.  
  7. class CharSetProber:
  8.     
  9.     def __init__(self):
  10.         pass
  11.  
  12.     
  13.     def reset(self):
  14.         self._mState = constants.eDetecting
  15.  
  16.     
  17.     def get_charset_name(self):
  18.         pass
  19.  
  20.     
  21.     def feed(self, aBuf):
  22.         pass
  23.  
  24.     
  25.     def get_state(self):
  26.         return self._mState
  27.  
  28.     
  29.     def get_confidence(self):
  30.         return 0
  31.  
  32.     
  33.     def filter_high_bit_only(self, aBuf):
  34.         aBuf = re.sub('([\\x00-\\x7F])+', ' ', aBuf)
  35.         return aBuf
  36.  
  37.     
  38.     def filter_without_english_letters(self, aBuf):
  39.         aBuf = re.sub('([A-Za-z])+', ' ', aBuf)
  40.         return aBuf
  41.  
  42.     
  43.     def filter_with_english_letters(self, aBuf):
  44.         return aBuf
  45.  
  46.  
  47.