HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/lib/python3.9/site-packages/chardet/__pycache__/sjisprober.cpython-39.pyc
a

��=b��@s`ddlmZddlmZddlmZddlmZddlm	Z	ddl
mZmZGdd�de�Z
d	S)
�)�MultiByteCharSetProber)�CodingStateMachine)�SJISDistributionAnalysis)�SJISContextAnalysis)�
SJIS_SM_MODEL)�ProbingState�MachineStatecsPeZdZ�fdd�Z�fdd�Zedd��Zedd��Zd	d
�Zdd�Z	�Z
S)
�
SJISProbercs4tt|���tt�|_t�|_t�|_	|�
�dS�N)�superr	�__init__rr�	coding_smr�distribution_analyzerr�context_analyzer�reset��self��	__class__��6/usr/lib/python3.9/site-packages/chardet/sjisprober.pyr%s

zSJISProber.__init__cstt|���|j��dSr
)rr	rrrrrrr,szSJISProber.resetcCs|jjSr
)r�charset_namerrrrr0szSJISProber.charset_namecCsdS)NZJapaneserrrrr�language4szSJISProber.languagecCsNtt|��D]�}|j�||�}|tjkrP|j�d|j|j	|�t
j|_�qq|tj
krjt
j|_�qq|tjkr|j��}|dkr�|d|jd<|j�|jd|d�|�|j�|j|�q|j�||d||d|�|�|j�||d|d�|�q|d|jd<|jt
jk�rH|j���rH|��|jk�rHt
j|_|jS)Nz!%s %s prober hit error at byte %s�r�����)�range�lenr
Z
next_staterZERROR�logger�debugrrrZNOT_ME�_stateZITS_MEZFOUND_ITZSTARTZget_current_charlenZ
_last_charr�feedr�stateZ	DETECTINGZgot_enough_data�get_confidenceZSHORTCUT_THRESHOLD)rZbyte_str�iZcoding_stateZchar_lenrrrr"8sD

�


�����zSJISProber.feedcCs|j��}|j��}t||�Sr
)rr$r�max)rZcontext_confZdistrib_confrrrr$Ys

zSJISProber.get_confidence)�__name__�
__module__�__qualname__rr�propertyrrr"r$�
__classcell__rrrrr	$s

!r	N)ZmbcharsetproberrZcodingstatemachinerZchardistributionrZjpcntxrZmbcssmrZenumsrrr	rrrr�<module>s