%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/pyparsing/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/pyparsing/__pycache__/unicode.cpython-312.pyc

�

&
�d�)���ddlZddlmZddlmZmZmZGd�d�ZeeeeefeefZ	Gd�d�Z
Gd�d	e
�Zy)
�N)�filterfalse)�List�Tuple�Unionc��eZdZd�Zd�Zy)�_lazyclasspropertyc�V�||_|j|_|j|_y)N)�fn�__doc__�__name__)�selfr
s  �3/usr/lib/python3/dist-packages/pyparsing/unicode.py�__init__z_lazyclassproperty.__init__	s������z�z�������
�c�(����t|��t�d�r!t�fd��jddD��ri�_|j
j}|�jvr|j���j|<�j|S)N�_internc3�P�K�|]}�jt|dg�u���y�w)rN)r�getattr)�.0�
superclass�clss  �r�	<genexpr>z-_lazyclassproperty.__get__.<locals>.<genexpr>s+�����.
��
�K�K�7�:�y�"�=�=�.
�s�#&�)�type�hasattr�any�__mro__rr
r)r
�objr�attrnames  ` r�__get__z_lazyclassproperty.__get__s�����;��s�)�C��s�I�&�#�.
�!�k�k�!�"�o�.
�+
��C�K��7�7�#�#���3�;�;�&�$(�G�G�C�L�C�K�K��!��{�{�8�$�$rN)r�
__module__�__qualname__rr �rrrrs��$�
%rrc��eZdZUdZgZeed<ed��Zed��Z	ed��Z
ed��Zed��Zed��Z
ed	��Zed
��Zy)�unicode_seta�
    A set of Unicode characters, for language-specific strings for
    ``alphas``, ``nums``, ``alphanums``, and ``printables``.
    A unicode_set is defined by a list of ranges in the Unicode character
    set, in a class attribute ``_ranges``. Ranges can be specified using
    2-tuples or a 1-tuple, such as::

        _ranges = [
            (0x0020, 0x007e),
            (0x00a0, 0x00ff),
            (0x0100,),
            ]

    Ranges are left- and right-inclusive. A 1-tuple of (x,) is treated as (x, x).

    A unicode set can also be defined using multiple inheritance of other unicode sets::

        class CJK(Chinese, Japanese, Korean):
            pass
    �_rangesc	��g}|jD]B}|turn8t|dd�D]&}|jt	|d|ddz���(�Dtt
|��D�cgc]
}t|���c}Scc}w)Nr&r#r���r)rr%r�extend�range�sorted�set�chr)r�ret�cc�rr�cs     r�_chars_for_rangeszunicode_set._chars_for_ranges7s�����+�+�	5�B��[� ���b�)�R�0�
5���
�
�5��A���2���
�3�4�
5�	5�
!'�s�3�x� 0�1�1��A��1�1��1s�*A?c�h�djttj|j��S)z+all non-whitespace characters in this range�)�joinr�str�isspacer2�rs r�
printableszunicode_set.printablesAs$���w�w�{�3�;�;��0E�0E�F�G�Grc�h�djttj|j��S)z'all alphabetic characters in this ranger4)r5�filterr6�isalphar2r8s r�alphaszunicode_set.alphasF�$���w�w�v�c�k�k�3�+@�+@�A�B�Brc�h�djttj|j��S)z*all numeric digit characters in this ranger4)r5r;r6�isdigitr2r8s r�numszunicode_set.numsKr>rc�4�|j|jzS)z)all alphanumeric characters in this range)r=rAr8s r�	alphanumszunicode_set.alphanumsPs���z�z�C�H�H�$�$rc��djttdjttj
|j��dzdzdz���S)zVall characters in this range that are valid identifier characters, plus underscore '_'r4u:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzªµºu|ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ�_)r5r+r,r;r6�isidentifierr2r8s r�
identcharszunicode_set.identcharsUsc���w�w����G�G�F�3�#3�#3�S�5J�5J�K�L�R�S�U�U����
�	
�		
rc���djtt|jdzdj|jD�cgc]}d|zj�s�|��c}�z���Scc}w)u�
        all characters in this range that are valid identifier body characters,
        plus the digits 0-9, and · (Unicode MIDDLE DOT)
        r4u0123456789·rE)r5r+r,rGr2rF)rr1s  r�identbodycharszunicode_set.identbodycharscsn���w�w����N�N�$�%��g�g�$'�$9�$9�V�q�c�A�g�=S�=S�=U��V����
�

�
	
��Ws�A/�A/c�H�ddlm}||j|j�S)z�
        a pyparsing Word expression for an identifier using this range's definitions for
        identchars and identbodychars
        r)�Word)�	pyparsingrKrGrI)rrKs  r�
identifierzunicode_set.identifierus��	#��C�N�N�C�$6�$6�7�7rN)rr!r"rr&�UnicodeRangeList�__annotations__rr2r9r=rArCrGrIrMr#rrr%r%s����*!#�G�
�"��2��2��H��H��C��C��C��C��%��%��
��
��
��
�"�8��8rr%c��eZdZUdZdej
fgZeed<Gd�de	�Z
Gd�de	�ZGd�d	e	�ZGd
�de	�Z
Gd�d
e	�ZGd�de	�ZGd�de	�ZGd�de	�ZGd�de	�ZeZGd�deee�ZGd�de	�ZGd�de	�ZGd�de	�ZGd�de	�Ze
ZeZeZeZeZeZeZeZ eZ!eZ"y )!�pyparsing_unicodezF
    A namespace class for defining common language unicode_sets.
    � r&c�"�eZdZUdZdgZeed<y)�(pyparsing_unicode.BasicMultilingualPlanez,Unicode set for the Basic Multilingual Plane)rRi��r&N�rr!r"rr&rNrOr#rr�BasicMultilingualPlanerT�s��:��%
��!�	
rrVc�$�eZdZUdZddgZeed<y)�pyparsing_unicode.Latin1z/Unicode set for Latin-1 Unicode Character Range)rR�~)��r&NrUr#rr�Latin1rX�s��=���%
��!�	
rr\c�"�eZdZUdZdgZeed<y)�pyparsing_unicode.LatinAz/Unicode set for Latin-A Unicode Character Range)�ir&NrUr#rr�LatinAr^����=��%
��!�	
rr`c�"�eZdZUdZdgZeed<y)�pyparsing_unicode.LatinBz/Unicode set for Latin-B Unicode Character Range)i�iOr&NrUr#rr�LatinBrc�rarrdc�$�eZdZUdZgd�Zeed<y)�pyparsing_unicode.Greekz.Unicode set for Greek Unicode Character Ranges)#)iBiE)ipiw)izi)i�i�)i�)i�i�)i�i�)i�i�)i&i*)i^)i`)ifij)ii)ii)i iE)iHiM)iPiW)iY)i[)i])i_i})i�i�)i�i�)i�i�)i�i�)i�i�)i�i�)i�i�)i)!)i'i')ie�)i@i�)i�)i�iE�)i��i��r&NrUr#rr�Greekrf�s��<�$%
��!�$	
rrgc�$�eZdZUdZgd�Zeed<y)�pyparsing_unicode.Cyrillicz0Unicode set for Cyrillic Unicode Character Range))ii/)i�i�)i+)ix)i�-i�-)i@�ir�)it�i��)i.�i/�r&NrUr#rr�Cyrillicri�s��>�	%
��!�		
rrjc�$�eZdZUdZgd�Zeed<y)�pyparsing_unicode.Chinesez/Unicode set for Chinese Unicode Character Range))i�.i�.)i�.i�.)i�1i�1)i4i�M)�Ni�)i�i�)i�im�)ip�i�)i�oi�o)i�i�)i�i;�)i@�iH�)ii֦)i�i4�)i@�i�)i �i��)i��i��)i�i�r&NrUr#rr�Chineserl�s��=�%
��!�	
rrnc��eZdZdZGd�de�ZGd�de�ZGd�de�ZeZeZ	eZ
ejejzejzZy)	�pyparsing_unicode.Japanesez`Unicode set for Japanese Unicode Character Range, combining Kanji, Hiragana, and Katakana rangesc�$�eZdZUdZddgZeed<y)� pyparsing_unicode.Japanese.Kanjiz-Unicode set for Kanji Unicode Character Range)rmi��)i0i?0r&NrUr#rr�Kanjirr�s��;� � �)�G�%�
rrsc�$�eZdZUdZgd�Zeed<y)�#pyparsing_unicode.Japanese.Hiraganaz0Unicode set for Hiragana Unicode Character Range))iA0i�0)�0�0)i�0)ip�)i�)iP�iR�)i�r&NrUr#rr�Hiraganaru�s��B�)�G�%�
rrxc�$�eZdZUdZgd�Zeed<y)�#pyparsing_unicode.Japanese.Katakanaz1Unicode set for Katakana  Unicode Character Range)	)rvi�0)rwi�0)i�1i�1)i�2i�2)ie�i��)i�)id�ig�)i�i�)i�r&NrUr#rr�Katakanarzs��C�
)�G�%�

rr{N)rr!r"rr%rsrxr{�漢字�カタカナ�ひらがなr&r#rr�Japaneserp�sd��n�	�K�	�
	�{�
	�	�{�	�������
�M�M����
����
�	rrc�$�eZdZUdZgd�Zeed<y)�pyparsing_unicode.Hangulz7Unicode set for Hangul (Korean) Unicode Character Range))ii�)i.0i/0)i11i�1)i2i2)i`2i{2)i~2)i`�i|�)i�i��)i��i��)i��i��)i��i��)i�i�)i�i�)i�i�)i�i�r&NrUr#rr�Hangulr�s��E�%
��!�	
rr�c��eZdZdZy)�pyparsing_unicode.CJKzTUnicode set for combined Chinese, Japanese, and Korean (CJK) Unicode Character RangeN)rr!r"rr#rr�CJKr�5s��brr�c�$�eZdZUdZddgZeed<y)�pyparsing_unicode.Thaiz,Unicode set for Thai Unicode Character Range)ii:)i?i[r&NrUr#rr�Thair�8s��:���%
��!�	
rr�c�$�eZdZUdZgd�Zeed<y)�pyparsing_unicode.Arabicz.Unicode set for Arabic Unicode Character Range))ii)ii�)iir&NrUr#rr�Arabicr�?s��<�%
��!�	
rr�c�$�eZdZUdZgd�Zeed<y)�pyparsing_unicode.Hebrewz.Unicode set for Hebrew Unicode Character Range)	)i�i�)i�i�)i�i�)i�i6�)i8�i<�)i>�)i@�iA�)iC�iD�)iF�iO�r&NrUr#rr�Hebrewr�Gs��<�
%
��!�
	
rr�c�$�eZdZUdZddgZeed<y)�pyparsing_unicode.Devanagariz2Unicode set for Devanagari Unicode Character Range)i	i	)i�i��r&NrUr#rr�
Devanagarir�Us��@���%
��!�	
rr�N)#rr!r"r�sys�
maxunicoder&rNrOr%rVr\r`rdrgrjrnrr��Koreanr�r�r�r�r��BMP�العربية�中文�кириллица�Ελληνικά�עִברִית�	日本語�	한국어�	ไทย�देवनागरीr#rrrQrQ�s���
���� �!�G�
��
��
�
��
�
��
�
��
�&
��&
�P
�;�
�
�+�
�.,
�;�,
�\
��
�(�F�c�g�x��c�
�{�
�
��
�
��
�
�[�
�!�C��N�
�F�!�����N��I��I��I�)�rrQ)r��	itertoolsr�typingrrrr�intrNr%rQr#rr�<module>r�s[���!�%�%�%�%�(��e�C��H�o�u�S�z�9�:�;��^8�^8�Bg*��g*r

Zerion Mini Shell 1.0