ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/chardet/
Upload File :
Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/chardet/universaldetector.pyc

�
j�Rc@s�ddlmZddlZddlZddlmZddlmZddlm	Z	ddl
mZddlZdZ
d	ZdZd
Zdd
d��YZdS(i(t	constantsi����N(tLatin1Prober(tMBCSGroupProber(tSBCSGroupProber(tEscCharSetProberg�������?iitUniversalDetectorcBs,eZd�Zd�Zd�Zd�ZRS(cCsDtjd�|_tjd�|_d|_g|_|j�dS(Ns[�-�]s(|~{)(tretcompilet_highBitDetectort_escDetectortNonet_mEscCharSetProbert_mCharSetProberstreset(tself((s=/usr/lib/python2.7/site-packages/chardet/universaldetector.pyt__init__-s
		cCsidd6dd6|_t|_t|_t|_t|_d|_	|j
r]|j
j�nx|jD]}|j�qgWdS(Ntencodinggt
confidencet(
R
tresulttFalsetdonetTruet_mStartt	_mGotDatat
ePureAsciit_mInputStatet
_mLastCharRR
R(Rtprober((s=/usr/lib/python2.7/site-packages/chardet/universaldetector.pyR
4s						cCs|jr
dSt|�}|s#dS|jsd|d tjkrYidd6dd6|_qd|d tjkr�idd6dd6|_qd|d tjkr�idd6dd6|_qd|d d	kr�id
d6dd6|_qd|d dkridd6dd6|_qd|d
 tjkr4idd6dd6|_qd|d
 tj	krdidd6dd6|_qdnt
|_|jdr�|jddkr�t
|_dS|jtkr�|j
j|�r�t|_q�|jtkr�|jj|j|�r�t|_q�n|d|_|jtkr�|js2t�|_n|jj|�tjkri|jj�d6|jj�d6|_t
|_qn�|jtkr|js�t�t�t�g|_nx\|jD]N}|j|�tjkr�i|j�d6|j�d6|_t
|_Pq�q�WndS(NisUTF-8Rg�?RisUTF-32LEsUTF-32BEs��sX-ISO-10646-UCS-4-3412t��sX-ISO-10646-UCS-4-2143isUTF-16LEsUTF-16BEgi����(RtlenRtcodecstBOMRtBOM_UTF32_LEtBOM_UTF32_BEtBOM_LEtBOM_BERRRRtsearcht	eHighbyteR	Rt	eEscAsciiRRtfeedRteFoundIttget_charset_nametget_confidenceRRRR(RtaBuftaLenR((s=/usr/lib/python2.7/site-packages/chardet/universaldetector.pyR(@sh			 	
			cCs�|jr
dS|js6tjr2tjjd�ndSt|_|jt	krlidd6dd6|_
|j
S|jtkrd}d}d}xD|j
D]9}|s�q�n|j�}||kr�|}|}q�q�W|r|tkri|j�d6|j�d6|_
|j
Sntjr|tjjd�xM|j
djD]8}|sOq=ntjjd	|j�|j�f�q=WndS(
Nsno data received!
tasciiRg�?Rgs"no probers hit minimum threshhold
is%s confidence = %s
(RRRt_debugtsyststderrtwriteRRRRR&R
RR+tMINIMUM_THRESHOLDR*tmProbers(RtproberConfidencetmaxProberConfidencet	maxProberR((s=/usr/lib/python2.7/site-packages/chardet/universaldetector.pytclose�sB				

		(t__name__t
__module__RR
R(R8(((s=/usr/lib/python2.7/site-packages/chardet/universaldetector.pyR,s			F((RRR0Rtlatin1proberRtmbcsgroupproberRtsbcsgroupproberRt	escproberRRR3RR'R&R(((s=/usr/lib/python2.7/site-packages/chardet/universaldetector.pyt<module>s

Zerion Mini Shell 1.0