Hacked By AnonymousFox

Current Path : /usr/lib/python3.6/site-packages/chardet/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/chardet/__pycache__/utf8prober.cpython-36.pyc

3

��X�
�@sHddlmZddlmZmZddlmZddlmZGdd�de�Z	dS)�)�
CharSetProber)�ProbingState�MachineState)�CodingStateMachine)�
UTF8_SM_MODELcsTeZdZdZ�fdd�Z�fdd�Zedd��Zedd	��Zd
d�Z	dd
�Z
�ZS)�
UTF8Proberg�?cs*tt|�j�tt�|_d|_|j�dS)N)�superr�__init__rr�	coding_sm�
_num_mb_chars�reset)�self)�	__class__�� /usr/lib/python3.6/utf8prober.pyr	&s
zUTF8Prober.__init__cs"tt|�j�|jj�d|_dS)N�)rrrr
r)r
)rrrr,s
zUTF8Prober.resetcCsdS)Nzutf-8r)r
rrr�charset_name1szUTF8Prober.charset_namecCsdS)N�r)r
rrr�language5szUTF8Prober.languagecCs�xj|D]b}|jj|�}|tjkr,tj|_Pq|tjkrBtj|_Pq|tj	kr|jj
�dkr|jd7_qW|jtj
kr�|j�|jkr�tj|_|jS)N�r)r
Z
next_staterZERRORrZNOT_MEZ_stateZITS_MEZFOUND_ITZSTARTZget_current_charlenr�stateZ	DETECTING�get_confidenceZSHORTCUT_THRESHOLD)r
Zbyte_str�cZcoding_staterrr�feed9s



zUTF8Prober.feedcCs.d}|jdkr&||j|j9}d|S|SdS)Ng�G�z��?�g�?)r�
ONE_CHAR_PROB)r
ZunlikerrrrLs

zUTF8Prober.get_confidence)�__name__�
__module__�__qualname__rr	r�propertyrrrr�
__classcell__rr)rrr#srN)
Z
charsetproberrZenumsrrZcodingstatemachinerZmbcssmrrrrrr�<module>s

Hacked By AnonymousFox1.0, Coded By AnonymousFox