관리-도구
편집 파일: sjisprober.cpython-37.pyc
B <_9Y� � @ 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| ��� tt�| _t� | _t� | _ | � � d S )N)�superr �__init__r r � coding_smr �distribution_analyzerr �context_analyzer�reset)�self)� __class__� �C/opt/alt/python37/lib/python3.7/site-packages/chardet/sjisprober.pyr % s zSJISProber.__init__c s t t| ��� | j�� 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 ]�}| j�|| �}|tjkrP| j�d| j| j |� t j| _P q|tj krft j| _P q|tjkr| j�� }|dkr�|d | jd<