Your IP : 52.15.49.90
3
��X� � @ s` d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl
mZmZ G dd� de�Z
d S )
� )�MultiByteCharSetProber)�CodingStateMachine)�SJISDistributionAnalysis)�SJISContextAnalysis)�
SJIS_SM_MODEL)�ProbingState�MachineStatec sP e Zd Z� fdd�Z� fdd�Zedd� �Zedd� �Zd d
� Zdd� Z � Z
S )
�
SJISProberc s4 t t| �j� tt�| _t� | _t� | _ | j
� d S )N)�superr �__init__r r � coding_smr �distribution_analyzerr �context_analyzer�reset)�self)� __class__� � /usr/lib/python3.6/sjisprober.pyr % s
zSJISProber.__init__c s t t| �j� | jj� d S )N)r
r r r )r )r r r r , s zSJISProber.resetc C s | j jS )N)r �charset_name)r r r r r 0 s zSJISProber.charset_namec C s dS )NZJapaneser )r r r r �language4 s zSJISProber.languagec C sL �xt t|��D ]�}| jj|| �}|tjkrP| jjd| j| j |� t
j| _P q|tj
krft
j| _P q|tjkr| jj� }|dkr�|d | jd<