o
    UÌh  ã                   @   s   d dl Z G dd„ deƒZdS )é    Nc                       sž   e Zd Z‡ fdd„Zejej d ZdZejd Z	dZ
dZe
e Zdefd	d
„Zdefdd„Zdefdd„Zdefdd„Zdefdd„Zdefdd„Z‡  ZS )ÚTOMLCharc                    s"   t ƒ  ¡  t| ƒdkrtdƒ‚d S )Né   z$A TOML character must be of length 1)ÚsuperÚ__init__ÚlenÚ
ValueError)ÚselfÚc©Ú	__class__© úe/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/tomlkit/toml_char.pyr      s   
ÿzTOMLChar.__init__z-_z= 	z+-_.ez 	z
Úreturnc                 C   ó
   | | j v S )zH
        Whether the character is a valid bare key name or not.
        )ÚBARE©r   r   r   r   Úis_bare_key_char   ó   
zTOMLChar.is_bare_key_charc                 C   r   )zN
        Whether the character is a valid key/value separator or not.
        )ÚKVr   r   r   r   Ú	is_kv_sep   r   zTOMLChar.is_kv_sepc                 C   r   )z[
        Whether the character if a valid integer or float value character or not.
        )ÚNUMBERr   r   r   r   Úis_int_float_char   r   zTOMLChar.is_int_float_charc                 C   r   )zI
        Whether the character is a whitespace character or not.
        )ÚWSr   r   r   r   Úis_ws$   r   zTOMLChar.is_wsc                 C   r   )zG
        Whether the character is a new line character or not.
        )ÚNLr   r   r   r   Úis_nl*   r   zTOMLChar.is_nlc                 C   r   )z9
        Whether the character is a space or not
        )ÚSPACESr   r   r   r   Ú	is_spaces0   r   zTOMLChar.is_spaces)Ú__name__Ú
__module__Ú__qualname__r   ÚstringÚascii_lettersÚdigitsr   r   r   r   r   r   Úboolr   r   r   r   r   r   Ú__classcell__r   r   r
   r   r      s    
r   )r!   Ústrr   r   r   r   r   Ú<module>   s    