Your IP : 3.144.119.149


Current Path : /opt/alt/python37/lib/python3.7/site-packages/chardet/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/chardet/__pycache__/utf8prober.cpython-37.pyc

B

<_9Y�
�@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|���tt�|_d|_|��dS)N)�superr�__init__rr�	coding_sm�
_num_mb_chars�reset)�self)�	__class__��C/opt/alt/python37/lib/python3.7/site-packages/chardet/utf8prober.pyr	&s
zUTF8Prober.__init__cs"tt|���|j��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}|j�|�}|tjkr,tj|_Pq|tjkrBtj|_Pq|tj	kr|j�
�dkr|jd7_qW|jtj
kr�|��|jkr�tj|_|jS)N�r)r
Z
next_stater�ERRORrZNOT_ME�_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

?>