U
    yc                     @   sp   d Z ddlmZmZ G dd dZG dd deZG dd deZG d	d
 d
ZG dd dZG dd dZ	dS )zr
All of the Enums that are used throughout the chardet package.

:author: Dan Blanchard (dan.blanchard@gmail.com)
    )EnumFlagc                   @   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.
    r         N)__name__
__module____qualname____doc__
PURE_ASCII	ESC_ASCII	HIGH_BYTE r   r   8/tmp/pip-build-0we0fmvo/pip/pip/_vendor/chardet/enums.pyr   
   s   r   c                   @   s@   e Zd ZdZdZdZdZdZdZdZ	dZ
eeB ZeeB eB Zd	S )
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      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
   	DETECTINGFOUND_ITNOT_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
   STARTERRORITS_MEr   r   r   r   r"   /   s   r"   c                   @   s2   e Zd ZdZdZdZdZdZee	dddZ
d	S )
SequenceLikelihoodzX
    This enum represents the likelihood of a character following the previous one.
    r   r   r      )returnc                 C   s   dS )z::returns: The number of likelihood categories in the enum.r   r   )clsr   r   r   get_num_categoriesC   s    z%SequenceLikelihood.get_num_categoriesN)r   r   r	   r
   NEGATIVEUNLIKELYLIKELYPOSITIVEclassmethodintr*   r   r   r   r   r&   9   s   r&   c                   @   s$   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
   	UNDEFINED
LINE_BREAKSYMBOLDIGITCONTROLr   r   r   r   r1   I   s   r1   N)
r
   enumr   r   r   r   r   r"   r&   r1   r   r   r   r   <module>   s   


