
    .Ph                     *    d dl Z  G d de          ZdS )    Nc                        e Zd Z fdZej        ej        z   dz   ZdZej        dz   Z	dZ
dZe
ez   ZdefdZdefd	Zdefd
ZdefdZdefdZdefdZ xZS )TOMLCharc                     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__s     Q/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/tomlkit/toml_char.pyr   zTOMLChar.__init__   s>    t99q==CDDD =    z-_z= 	z+-_.ez 	z
returnc                     | | j         v S )zH
        Whether the character is a valid bare key name or not.
        )BAREr   s    r   is_bare_key_charzTOMLChar.is_bare_key_char   s     ty  r   c                     | | j         v S )zN
        Whether the character is a valid key/value separator or not.
        )KVr   s    r   	is_kv_sepzTOMLChar.is_kv_sep        twr   c                     | | j         v S )z[
        Whether the character if a valid integer or float value character or not.
        )NUMBERr   s    r   is_int_float_charzTOMLChar.is_int_float_char        t{""r   c                     | | j         v S )zI
        Whether the character is a whitespace character or not.
        )WSr   s    r   is_wszTOMLChar.is_ws$   r   r   c                     | | j         v S )zG
        Whether the character is a new line character or not.
        )NLr   s    r   is_nlzTOMLChar.is_nl*   r   r   c                     | | j         v S )z9
        Whether the character is a space or not
        )SPACESr   s    r   	is_spaceszTOMLChar.is_spaces0   r   r   )__name__
__module____qualname__r   stringascii_lettersdigitsr   r   r   r$   r!   r   boolr   r   r   r   r"   r%   __classcell__)r   s   @r   r   r      s       E E E E E &-/$6D	B]W$FF	B	"B!$ ! ! ! !4    #4 # # # #t    t    #4 # # # # # # # #r   r   )r)   strr    r   r   <module>r0      sB    0# 0# 0# 0# 0#s 0# 0# 0# 0# 0#r   