%PDF- %PDF-
Direktori : /lib/python3/dist-packages/chardet/__pycache__/ |
Current File : //lib/python3/dist-packages/chardet/__pycache__/enums.cpython-312.pyc |
� �d� � � � d Z ddlmZmZ G d� d� Z G d� de� Z G d� de� Z G d � d � Z G d� d� Z G d � d� Z y)zr All of the Enums that are used throughout the chardet package. :author: Dan Blanchard (dan.blanchard@gmail.com) � )�Enum�Flagc � � e Zd ZdZdZdZdZy)� InputStatezS This enum represents the different states a universal detector can be in. r � � N)�__name__� __module__�__qualname__�__doc__� PURE_ASCII� ESC_ASCII� HIGH_BYTE� � �//usr/lib/python3/dist-packages/chardet/enums.pyr r s � �� �J��I��Ir r c �F � e Zd ZdZdZdZdZdZdZdZ dZ eez Zeez ez Zy ) �LanguageFilterzj This enum represents the different language filters we can apply to a ``UniversalDetector``. r r r � � � � N) r r r r �NONE�CHINESE_SIMPLIFIED�CHINESE_TRADITIONAL�JAPANESE�KOREAN�NON_CJK�ALL�CHINESE�CJKr r r r r sH � �� �D������H� �F��G� �C� �#6�6�G� �H� �v� %�Cr r c � � e Zd ZdZdZdZdZy)�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� �Fr r# c � � e Zd ZdZdZdZdZy)�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� �Fr r( c �6 � e Zd ZdZdZdZdZdZede fd�� Z y) �SequenceLikelihoodzX This enum represents the likelihood of a character following the previous one. r r r � �returnc � � y)z::returns: The number of likelihood categories in the enum.r r )�clss r �get_num_categoriesz%SequenceLikelihood.get_num_categoriesC s � � r N)r r r r �NEGATIVE�UNLIKELY�LIKELY�POSITIVE�classmethod�intr2 r r r r- r- 9 s6 � �� �H��H� �F��H���3� � �r r- c �$ � e Zd ZdZdZdZdZdZdZy)�CharacterCategoryz� This enum represents the different categories language models for ``SingleByteCharsetProber`` put characters into. Anything less than CONTROL is considered a letter. � � � � � N) r r r r � UNDEFINED� LINE_BREAK�SYMBOL�DIGIT�CONTROLr r r r: r: I s"