f 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 dS )zr
All of the Enums that are used throughout the chardet package.
:author: Dan Blanchard (dan.blanchard@gmail.com)
)EnumFlagc e Zd ZdZdZdZdZdS )
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 B/opt/cloudlinux/venv/lib/python3.11/site-packages/chardet/enums.pyr r
s) JIIIIr r c H e Zd ZdZdZdZdZdZdZdZ dZ
eez Zeez ez Zd S )
LanguageFilterzj
This enum represents the different language filters we can apply to a
``UniversalDetector``.
r r r N)
r r
r r NONECHINESE_SIMPLIFIEDCHINESE_TRADITIONALJAPANESEKOREANNON_CJKALLCHINESECJKr r r r r sY
DH
FG
C #66G
H
v
%CCCr 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 DETECTINGFOUND_ITNOT_MEr r r r# r# % s) IH
FFFr 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 STARTERRORITS_MEr r r r( r( / s)
E
E
FFFr r( c > e Zd ZdZdZdZdZdZede fd Z
dS ) SequenceLikelihoodzX
This enum represents the likelihood of a character following the previous one.
r r r returnc dS )z::returns: The number of likelihood categories in the enum.r r )clss r get_num_categoriesz%SequenceLikelihood.get_num_categoriesC s qr N)r r
r r NEGATIVEUNLIKELYLIKELYPOSITIVEclassmethodintr2 r r r r- r- 9 sY HH
FH3 [ r r- c &