관리-도구
편집 파일: sjisprober.cpython-310.pyc
o ƚRe� � @ 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__� ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/chardet/sjisprober.pyr % s zSJISProber.__init__c s t t| ��� | j�� d S r )r r r r r r r r r , s zSJISProber.resetc C s | j jS r )r �charset_namer r r r r 0 s zSJISProber.charset_namec C s dS )N�Japaneser r r r r �language4 s zSJISProber.languagec C s@ t t|��D ]y}| j�|| �}|tjkr&| j�d| j| j |� t j| _ nZ|tj kr1t j| _ nO|tjkr| j�� }|dkr]|d | jd<