ok

Mini Shell

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

�
j�Rc@s�ddlZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZd	efd
��YZ
dS(i����Ni(tMultiByteCharSetProber(tCodingStateMachine(tSJISDistributionAnalysis(tSJISContextAnalysis(tSJISSMModel(t	constantst
SJISProbercBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsBtj|�tt�|_t�|_t�|_|j	�dS(N(
Rt__init__RRt
_mCodingSMRt_mDistributionAnalyzerRt_mContextAnalyzertreset(tself((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyR&s

cCstj|�|jj�dS(N(RRR
(R((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyR-s
cCsdS(Nt	SHIFT_JIS((R((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pytget_charset_name1scCs�t|�}x`td|�D]O}|jj||�}|tjkr�tjr{tjj	|j
�dt|�d�ntj|_
Pq|tjkr�tj|_
Pq|tjkr|jj�}|dkr|d|jd<|jj|jd||�|jj|j|�qk|jj||d||d|!|�|jj||d|d!|�qqW||d|jd<|j�tjkr�|jj�r�|j�tjkr�tj|_
q�n|j�S(Nis prober hit error at byte s
iii(tlentrangeRt
next_stateRteErrort_debugtsyststderrtwriteRtstrteNotMet_mStateteItsMeteFoundItteStarttget_current_charlent
_mLastCharR
tfeedR	t	get_statet
eDetectingtgot_enough_datatget_confidencetSHORTCUT_THRESHOLD(RtaBuftaLentitcodingStatetcharLen((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyR4s:		"cCs+|jj�}|jj�}t||�S(N(R
R#R	tmax(RtcontxtCft	distribCf((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyR#Xs(t__name__t
__module__RRRRR#(((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyR%s
				$(RtmbcharsetproberRtcodingstatemachineRtchardistributionRtjpcntxRtmbcssmRtRR(((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyt<module>s

Zerion Mini Shell 1.0