o
    ٷi                     @   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/home/ubuntu/.local/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    