Your IP : 3.135.213.128


Current Path : /opt/alt/python313/lib64/python3.13/importlib/metadata/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/importlib/metadata/__pycache__/_text.cpython-313.pyc

�

+}gv��.�SSKrSSKJr "SS\5rg)�N�)�method_cachec�v^�\rSrSrSrSrSrSrSrSr	U4Sjr
S	r\U4S
j5r
SrSSjrS
rU=r$)�
FoldedCase�a�
A case insensitive string class; behaves just like str
except compares equal when the only variation is case.

>>> s = FoldedCase('hello world')

>>> s == 'Hello World'
True

>>> 'Hello World' == s
True

>>> s != 'Hello World'
False

>>> s.index('O')
4

>>> s.split('O')
['hell', ' w', 'rld']

>>> sorted(map(FoldedCase, ['GAMMA', 'alpha', 'Beta']))
['alpha', 'Beta', 'GAMMA']

Sequence membership is straightforward.

>>> "Hello World" in [s]
True
>>> s in ["Hello World"]
True

You may test for set inclusion, but candidate and elements
must both be folded.

>>> FoldedCase("Hello World") in {s}
True
>>> s in {FoldedCase("Hello World")}
True

String inclusion works as long as the FoldedCase object
is on the right.

>>> "hello" in FoldedCase("Hello World")
True

But not if the FoldedCase object is on the left:

>>> FoldedCase('hello') in 'Hello World'
False

In that case, use in_:

>>> FoldedCase('hello').in_('Hello World')
True

>>> FoldedCase('hello') > FoldedCase('Hello')
False
c�D�UR5UR5:$�N��lower��self�others  �?/opt/alt/python313/lib64/python3.13/importlib/metadata/_text.py�__lt__�FoldedCase.__lt__C����z�z�|�e�k�k�m�+�+�c�D�UR5UR5:�$r	r
rs  r�__gt__�FoldedCase.__gt__Frrc�D�UR5UR5:H$r	r
rs  r�__eq__�FoldedCase.__eq__I����z�z�|�u�{�{�}�,�,rc�D�UR5UR5:g$r	r
rs  r�__ne__�FoldedCase.__ne__Lrrc�4�[UR55$r	)�hashr)r
s r�__hash__�FoldedCase.__hash__Os���D�J�J�L�!�!rc�Z>�[TU]5RUR55$r	)�superr�__contains__)r
r�	__class__s  �rr$�FoldedCase.__contains__Rs ����w�}��+�+�E�K�K�M�:�:rc��U[U5;$)zDoes self appear in other?)rrs  r�in_�FoldedCase.in_Us���z�%�(�(�(rc� >�[TU]5$r	)r#r)r
r%s �rr�FoldedCase.lowerZs����w�}��rc�\�UR5RUR55$r	)r�index)r
�subs  rr-�FoldedCase.index^s���z�z�|�!�!�#�)�)�+�.�.rc��[R"[R"U5[R5nUR	X5$r	)�re�compile�escape�I�split)r
�splitter�maxsplit�patterns    rr5�FoldedCase.splitas.���*�*�R�Y�Y�x�0�"�$�$�7���}�}�T�,�,r�)� r)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrrrr r$r(rrr-r5�__static_attributes__�
__classcell__)r%s@rrrsO���9�v,�,�-�-�"�;�)�
����/�-�-rr)r1�
_functoolsr�strrr:rr�<module>rEs��	�$�\-��\-r

?>