
    Jc                     6    d dl Z d dlmZ  G d de          ZdS )    N)	lru_cachec                       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 ed          d	efd
            Z ed          d	efd            Z ed          d	efd            Z ed          d	efd            Z ed          d	efd            Z ed          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     1lib/python3.11/site-packages/tomlkit/toml_char.pyr	   zTOMLChar.__init__   sG    t99q= 	ECDDD	E 	E    z-_z= 	z+-_.ez 	z
N)maxsize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_nl0   r   r   c                     | | j         v S )z9
        Whether the character is a space or not
        )SPACESr   s    r   	is_spaceszTOMLChar.is_spaces7   r   r   )__name__
__module____qualname__r	   stringascii_lettersdigitsr   r   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Yt!$ ! ! ! ! Yt4     Yt#4 # # # # Ytt     Ytt     Yt#4 # # # # # # # #r   r   )r+   	functoolsr   strr    r   r   <module>r3      sT          6# 6# 6# 6# 6#s 6# 6# 6# 6# 6#r   