Current File : /opt/alt/python311/lib/python3.11/site-packages/chardet/__pycache__//enums.cpython-311.pyc
�
q�;f} � � � d Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d � d
e� � Z G d� de� � Zd
S )zr
All of the Enums that are used throughout the chardet package.
:author: Dan Blanchard (dan.blanchard@gmail.com)
c � � e Zd ZdZdZdZdZdS )�
InputStatezS
This enum represents the different states a universal detector can be in.
� � � N)�__name__�
__module__�__qualname__�__doc__�
PURE_ASCII� ESC_ASCII� HIGH_BYTE� � �@/opt/alt/python311/lib/python3.11/site-packages/chardet/enums.pyr r s) � � � � � �� � �J��I��I�I�Ir r c �D � e Zd ZdZdZdZdZdZdZdZ eez Z
e
ez ez ZdS ) �LanguageFilterzj
This enum represents the different language filters we can apply to a
``UniversalDetector``.
r r � � � � N)r r r r
�CHINESE_SIMPLIFIED�CHINESE_TRADITIONAL�JAPANESE�KOREAN�NON_CJK�ALL�CHINESE�CJKr r r r r sT � � � � � �� � �����H�
�F��G�
�C� �#6�6�G�
�H�
�v�
%�C�C�Cr r c � � e Zd ZdZdZdZdZdS )�ProbingStatezG
This enum represents the different states a prober can be in.
r r r N)r r r r
� DETECTING�FOUND_IT�NOT_MEr r r r r s) � � � � � �� � �I��H�
�F�F�Fr r c � � e Zd ZdZdZdZdZdS )�MachineStatezN
This enum represents the different states a state machine can be in.
r r r N)r r r r
�START�ERROR�ITS_MEr r r r% r% ) s) � � � � � �� �
�E�
�E�
�F�F�Fr r% c �8 � e Zd ZdZdZdZdZdZed� � � Z dS )�SequenceLikelihoodzX
This enum represents the likelihood of a character following the previous one.
r r r � c � � dS )z::returns: The number of likelihood categories in the enum.r r )�clss r �get_num_categoriesz%SequenceLikelihood.get_num_categories; s � � �qr N)
r r r r
�NEGATIVE�UNLIKELY�LIKELY�POSITIVE�classmethodr. r r r r* r* 2 sM � � � � � �� � �H��H�
�F��H��� � �[�� � r r* c �&