Viewing File: /opt/alt/python35/lib/python3.5/site-packages/chardet/__pycache__/enums.cpython-35.pyc
<_9Y} ã @ sŽ d Z Gd d „ d e ƒ Z Gd d „ d e ƒ Z Gd d „ d e ƒ Z Gd d „ d e ƒ Z Gd d
„ d
e ƒ Z Gd d „ d e ƒ Z d
S)zr
All of the Enums that are used throughout the chardet package.
:author: Dan Blanchard (dan.blanchard@gmail.com)
c @ s( e Z d Z d Z d Z d Z d Z d S)Ú
InputStatezS
This enum represents the different states a universal detector can be in.
é é é N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z
PURE_ASCIIZ ESC_ASCIIZ HIGH_BYTE© r r ú /enums.pyr s r c @ sR e Z d Z d Z d Z d Z d Z d Z d Z d Z e e BZ
e
e Be BZ d S) ÚLanguageFilterzj
This enum represents the different language filters we can apply to a
``UniversalDetector``.
r r é é é é N)r r r r ZCHINESE_SIMPLIFIEDZCHINESE_TRADITIONALZJAPANESEZKOREANZNON_CJKZALLZCHINESEZCJKr r r r
r s
r c @ s( e Z d Z d Z d Z d Z d Z d S)ÚProbingStatezG
This enum represents the different states a prober can be in.
r r r N)r r r r Z DETECTINGZFOUND_ITZNOT_MEr r r r
r s r c @ s( e Z d Z d Z d Z d Z d Z d S)ÚMachineStatezN
This enum represents the different states a state machine can be in.
r r r N)r r r r ZSTARTÚERRORZITS_MEr r r r
r ) s r c @ s@ e Z d Z d Z d Z d Z d Z d Z e d d „ ƒ Z d S) ÚSequenceLikelihoodzX
This enum represents the likelihood of a character following the previous one.
r r r é c C s d S)z::returns: The number of likelihood categories in the enum.r r )Úclsr r r
Úget_num_categories; s z%SequenceLikelihood.get_num_categoriesN)
r r r r ZNEGATIVEZUNLIKELYZLIKELYZPOSITIVEÚclassmethodr r r r r
r 2 s r c @ s4 e Z d Z d Z d Z d Z d Z d Z d Z d S)Ú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 Z UNDEFINEDZ
LINE_BREAKZSYMBOLZDIGITZCONTROLr r r r
r A s r N)r Úobjectr r r r r r r r r r
Ú<module> s
Back to Directory
File Manager