î
)Ú Xn  ã               @   s3   d  d l  m Z d d l Z Gd d „  d ƒ Z d S)é   )Ú	constantsé    Nc               @   s|   e  Z d  Z d d „  Z d d „  Z d d „  Z d d „  Z d	 d
 „  Z d d „  Z d d „  Z	 d d „  Z
 d d „  Z d S)ÚCharSetProberc             C   s   d  S)N© )Úselfr   r   úW/home/ubuntu/projects/ifolica/build/requests/requests/packages/chardet/charsetprober.pyÚ__init__"   s    zCharSetProber.__init__c             C   s   t  j |  _ d  S)N)r   Z
eDetectingÚ_mState)r   r   r   r   Úreset%   s    zCharSetProber.resetc             C   s   d  S)Nr   )r   r   r   r   Úget_charset_name(   s    zCharSetProber.get_charset_namec             C   s   d  S)Nr   )r   ÚaBufr   r   r   Úfeed+   s    zCharSetProber.feedc             C   s   |  j  S)N)r	   )r   r   r   r   Ú	get_state.   s    zCharSetProber.get_statec             C   s   d S)Ng        r   )r   r   r   r   Úget_confidence1   s    zCharSetProber.get_confidencec             C   s   t  j d d | ƒ } | S)Ns   ([ -])+ó    )ÚreÚsub)r   r   r   r   r   Úfilter_high_bit_only4   s    z"CharSetProber.filter_high_bit_onlyc             C   s   t  j d d | ƒ } | S)Ns   ([A-Za-z])+r   )r   r   )r   r   r   r   r   Úfilter_without_english_letters8   s    z,CharSetProber.filter_without_english_lettersc             C   s   | S)Nr   )r   r   r   r   r   Úfilter_with_english_letters<   s    z)CharSetProber.filter_with_english_lettersN)Ú__name__Ú
__module__Ú__qualname__r   r
   r   r   r   r   r   r   r   r   r   r   r   r   !   s   r   )Ú r   r   r   r   r   r   r   Ú<module>   s   