Your IP : 18.217.10.152
B
<_9Y� � @ s` d dl mZmZ d dlmZ d dlmZ d dlmZ d dl m
Z
d dlmZ G dd� de�Z
d S )
� )�ProbingState�MachineState)�MultiByteCharSetProber)�CodingStateMachine)�EUCJPDistributionAnalysis)�EUCJPContextAnalysis)�EUCJP_SM_MODELc sP e Zd Z� fdd�Z� fdd�Zedd� �Zedd� �Zd d
� Zdd� Z � Z
S )
�EUCJPProberc s4 t t| ��� tt�| _t� | _t� | _ | �
� d S )N)�superr �__init__r r � coding_smr �distribution_analyzerr �context_analyzer�reset)�self)� __class__� �D/opt/alt/python37/lib/python3.7/site-packages/chardet/eucjpprober.pyr % s
zEUCJPProber.__init__c s t t| ��� | j�� d S )N)r
r r r )r )r r r r , s zEUCJPProber.resetc C s dS )NzEUC-JPr )r r r r �charset_name0 s zEUCJPProber.charset_namec C s dS )NZJapaneser )r r r r �language4 s zEUCJPProber.languagec C s6 x�t t|��D ]�}| j�|| �}|tjkrN| j�d| j| j |� t
j| _P q|tj
krdt
j| _P q|tjkr| j�� }|dkr�|d | jd<