Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/lib/python2.7/site-packages/chardet/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/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

ZeroDay Forums Mini