AlkantarClanX12
Current Path : /proc/self/root/usr/lib/python3.6/site-packages/chardet/__pycache__/ |
Current File : //proc/self/root/usr/lib/python3.6/site-packages/chardet/__pycache__/eucjpprober.cpython-36.pyc |
3 ��X� � @ 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| �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/eucjpprober.pyr % s zEUCJPProber.__init__c s t t| �j� | jj� 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 ]�}| jj|| �}|tjkrN| jjd| j| j |� t j| _P q|tj krdt j| _P q|tjkr| jj� }|dkr�|d | jd<