https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/chardet/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/chardet/__pycache__/sjisprober.cpython-310.pyc
o

�H�_��@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__��4/usr/lib/python3/dist-packages/chardet/sjisprober.pyr%s

zSJISProber.__init__cstt|���|j��dSr
)rr	rrrrrrr,szSJISProber.resetcCs|jjSr
)r�charset_namerrrrr0szSJISProber.charset_namecCsdS)N�Japaneserrrrr�language4szSJISProber.languagecCs@tt|��D]y}|j�||�}|tjkr&|j�d|j|j	|�t
j|_nZ|tj
kr1t
j|_nO|tjkr|j��}|dkr]|d|jd<|j�|jd|d�|�|j�|j|�q|j�||d||d|�|�|j�||d|d�|�q|d|jd<|jt
jkr�|j��r�|��|jkr�t
j|_|jS)Nz!%s %s prober hit error at byte %s�r�����)�range�lenr
�
next_stater�ERROR�logger�debugrrr�NOT_ME�_state�ITS_ME�FOUND_IT�START�get_current_charlen�
_last_charr�feedr�state�	DETECTING�got_enough_data�get_confidence�SHORTCUT_THRESHOLD)r�byte_str�i�coding_state�char_lenrrrr+8sD

�


�����
zSJISProber.feedcCs|j��}|j��}t||�Sr
)rr/r�max)r�context_conf�distrib_confrrrr/Ys


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

!r	N)�mbcharsetproberr�codingstatemachiner�chardistributionr�jpcntxr�mbcssmr�enumsrrr	rrrr�<module>s

https://t.me/RX1948 - 2025