R`i 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)
)EnumFlagc 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 /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/chardet/enums.pyr r
s JIIr 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 NONECHINESE_SIMPLIFIEDCHINESE_TRADITIONALJAPANESEKOREANNON_CJKALLCHINESECJKr r r r r sH
DH
FG
C #66G
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 DETECTINGFOUND_ITNOT_MEr r r r# r# % s IH
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 STARTERRORITS_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 NEGATIVEUNLIKELYLIKELYPOSITIVEclassmethodintr2 r r r r- r- 9 s6 HH
FH3 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_BREAKSYMBOLDIGITCONTROLr r r r: r: I s" IJ
FEGr r: N)
r enumr r r r r# r( r- r: r r r