관리-도구
편집 파일: eucjpprober.cpython-38.pyc
U ��.e� � @ 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__� �C/usr/lib/python3.8/site-packages/pip/_vendor/chardet/eucjpprober.pyr % s zEUCJPProber.__init__c s t t| ��� | j�� d S r )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 t t|��D ]�}| j�|| �}|tjkrN| j�d| j| j |� t j| _ q�q|tj krft j| _ q�q|tjkr| j�� }|dkr�|d | jd<