HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/pyparsing/__pycache__/unicode.cpython-37.opt-1.pyc
B

�f%d#*�@s
ddlZddlmZddlmZmZmZGdd�d�ZeeeeefeefZ	Gdd�d�Z
Gdd	�d	e
�Zejj
jejjjejjjej_eje_eje_eje_eje_eje_eje_eje_ejj
ej_ejjej_ejjej_ ej!e_"ej#e_$ej%e_&dS)
�N)�filterfalse)�List�Tuple�Unionc@seZdZdd�Zdd�ZdS)�_lazyclasspropertycCs||_|j|_|j|_dS)N)�fn�__doc__�__name__)�selfr�r�B/opt/alt/python37/lib/python3.7/site-packages/pyparsing/unicode.py�__init__	sz_lazyclassproperty.__init__csl�dkrt|��t�d�r:t�fdd��jdd�D��r@i�_|jj}|�jkrb|����j|<�j|S)N�_internc3s |]}�jt|dg�kVqdS)rN)r�getattr)�.0Z
superclass)�clsrr�	<genexpr>sz-_lazyclassproperty.__get__.<locals>.<genexpr>�)�type�hasattr�any�__mro__rrr	)r
�objrZattrnamer)rr�__get__s

z_lazyclassproperty.__get__N)r	�
__module__�__qualname__r
rrrrrrsrc@sreZdZUdZgZeed<edd��Zedd��Z	edd��Z
ed	d
��Zedd��Zed
d��Z
edd��ZdS)�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
    �_rangescCsfg}xJ|jD]@}|tkrPx0t|dd�D] }|�t|d|dd��q(WqWdd�tt|��D�S)Nrrr���rcSsg|]}t|��qSr)�chr)r�crrr�
<listcomp>?sz1unicode_set._chars_for_ranges.<locals>.<listcomp>)rrr�extend�range�sorted�set)rZretZccZrrrrr�_chars_for_ranges7s$zunicode_set._chars_for_rangescCsd�ttj|j��S)z+all non-whitespace characters in this range�)�joinr�str�isspacer&)rrrr�
printablesAszunicode_set.printablescCsd�ttj|j��S)z'all alphabetic characters in this ranger')r(�filterr)�isalphar&)rrrr�alphasFszunicode_set.alphascCsd�ttj|j��S)z*all numeric digit characters in this ranger')r(r,r)�isdigitr&)rrrr�numsKszunicode_set.numscCs|j|jS)z)all alphanumeric characters in this range)r.r0)rrrr�	alphanumsPszunicode_set.alphanumsc	Cs.d�ttd�ttj|j��ddd���S)zVall characters in this range that are valid identifier characters, plus underscore '_'r'u:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzªµºu|ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ�_)r(r$r%r,r)�isidentifierr&)rrrr�
identcharsUszunicode_set.identcharsc	Cs.d�tt|jdd�dd�|jD�����S)zu
        all characters in this range that are valid identifier body characters,
        plus the digits 0-9
        r'�
0123456789cSsg|]}d|��r|�qS)r2)r3)rr rrrr!osz.unicode_set.identbodychars.<locals>.<listcomp>)r(r$r%r4r&)rrrr�identbodycharscs
zunicode_set.identbodycharsN)r	rrrr�UnicodeRangeList�__annotations__rr&r+r.r0r1r4r6rrrrrs

rc@seZdZUdZdejfgZeed<Gdd�de	�Z
Gdd�de	�ZGdd	�d	e	�ZGd
d�de	�Z
Gdd
�d
e	�ZGdd�de	�ZGdd�de	�ZGdd�de	�ZGdd�de	�ZeZGdd�deee�ZGdd�de	�ZGdd�de	�ZGdd�de	�ZGdd�de	�Zd S)!�pyparsing_unicodezF
    A namespace class for defining common language unicode_sets.
    � rc@s eZdZUdZdgZeed<dS)z(pyparsing_unicode.BasicMultilingualPlanez,Unicode set for the Basic Multilingual Plane)r:i��rN)r	rrrrr7r8rrrr�BasicMultilingualPlane�s
r;c@s"eZdZUdZddgZeed<dS)zpyparsing_unicode.Latin1z/Unicode set for Latin-1 Unicode Character Range)r:�~)��rN)r	rrrrr7r8rrrr�Latin1�s
r?c@s eZdZUdZdgZeed<dS)zpyparsing_unicode.LatinAz/Unicode set for Latin-A Unicode Character Range)�irN)r	rrrrr7r8rrrr�LatinA�s
rAc@s eZdZUdZdgZeed<dS)zpyparsing_unicode.LatinBz/Unicode set for Latin-B Unicode Character Range)i�iOrN)r	rrrrr7r8rrrr�LatinB�s
rBc#@sdeZdZUdZdddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$g#Zeed%<d&S)'zpyparsing_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��rN)r	rrrrr7r8rrrr�Greek�sH
rCc@s.eZdZUdZdddddddd	gZeed
<dS)zpyparsing_unicode.Cyrillicz0Unicode set for Cyrillic Unicode Character Range)ii/)i�i�)i+)ix)i�-i�-)i@�ir�)it�i��)i.�i/�rN)r	rrrrr7r8rrrr�Cyrillic�s
rDc@sBeZdZUdZdddddddd	d
ddd
ddddddgZeed<dS)zpyparsing_unicode.Chinesez/Unicode set for Chinese Unicode Character Range)i�.i�.)i�.i�.)i�1i�1)i4i�M)iNi�)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�rN)r	rrrrr7r8rrrr�Chinese�s&
rEc@sNeZdZUdZgZeed<Gdd�de�ZGdd�de�Z	Gdd�de�Z
d	S)
zpyparsing_unicode.Japanesez`Unicode set for Japanese Unicode Character Range, combining Kanji, Hiragana, and Katakana rangesrc@s"eZdZUdZddgZeed<dS)z pyparsing_unicode.Japanese.Kanjiz-Unicode set for Kanji Unicode Character Range)iNi��)i0i?0rN)r	rrrrr7r8rrrr�Kanji�s
rFc@s,eZdZUdZdddddddgZeed	<d
S)z#pyparsing_unicode.Japanese.Hiraganaz0Unicode set for Hiragana Unicode Character Range)iA0i�0)i�0i�0)i�0)ip�)i�)iP�iR�)i�rN)r	rrrrr7r8rrrr�Hiragana�s
rGc	@s0eZdZUdZdddddddd	d
g	Zeed<dS)
z#pyparsing_unicode.Japanese.Katakanaz1Unicode set for Katakana  Unicode Character Range)i�0i�0)i�0i�0)i�1i�1)i�2i�2)ie�i��)i�)id�ig�)i�i�)i�rN)r	rrrrr7r8rrrr�Katakana�s
rHN)r	rrrrr7r8rrFrGrHrrrr�Japanese�s

rIc@s<eZdZUdZdddddddd	d
ddd
dddgZeed<dS)zpyparsing_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�rN)r	rrrrr7r8rrrr�Hanguls 
rJc@seZdZdZdS)zpyparsing_unicode.CJKzTUnicode set for combined Chinese, Japanese, and Korean (CJK) Unicode Character RangeN)r	rrrrrrr�CJK"srKc@s"eZdZUdZddgZeed<dS)zpyparsing_unicode.Thaiz,Unicode set for Thai Unicode Character Range)ii:)i?i[rN)r	rrrrr7r8rrrr�Thai%s
rLc@s$eZdZUdZdddgZeed<dS)zpyparsing_unicode.Arabicz.Unicode set for Arabic Unicode Character Range)ii)ii�)iirN)r	rrrrr7r8rrrr�Arabic,s
rMc	@s0eZdZUdZdddddddd	d
g	Zeed<dS)
zpyparsing_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�rN)r	rrrrr7r8rrrr�Hebrew4s
rNc@s"eZdZUdZddgZeed<dS)zpyparsing_unicode.Devanagariz2Unicode set for Devanagari Unicode Character Range)i	i	)i�i��rN)r	rrrrr7r8rrrr�
DevanagariBs
rON)r	rrr�sys�
maxunicoderr7r8rr;r?rArBrCrDrErIrJ�KoreanrKrLrMrNrOrrrrr9vs"
(
%r9)'rP�	itertoolsr�typingrrrr�intr7rr9rIrFrrGrHr;ZBMPrMtالعربيةrEt中文rDtкириллицаrCtΕλληνικάrNtעִברִיתt	日本語t漢字tカタカナtひらがなrRt	한국어rLt	ไทยrOtदेवनागरीrrrr�<module>s*WZ"