Hacked By AnonymousFox

Current Path : /opt/alt/python312/lib64/python3.12/importlib/metadata/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/importlib/metadata/__pycache__/_text.cpython-312.pyc

�

0�fv��.�ddlZddlmZGd�de�Zy)�N�)�method_cachec�h��eZdZdZd�Zd�Zd�Zd�Zd�Z�fd�Z	d�Z
e�fd	��Zd
�Z
dd�Z�xZS)
�
FoldedCasea{
    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�|j�|j�kS�N��lower��self�others  �?/opt/alt/python312/lib64/python3.12/importlib/metadata/_text.py�__lt__zFoldedCase.__lt__C����z�z�|�e�k�k�m�+�+�c�D�|j�|j�kDSrr	rs  r�__gt__zFoldedCase.__gt__Frrc�D�|j�|j�k(Srr	rs  r�__eq__zFoldedCase.__eq__I����z�z�|�u�{�{�}�,�,rc�D�|j�|j�k7Srr	rs  r�__ne__zFoldedCase.__ne__Lrrc�4�t|j��Sr)�hashr
)rs r�__hash__zFoldedCase.__hash__Os���D�J�J�L�!�!rc�Z��t�|��j|j��Sr)�superr
�__contains__)rr
�	__class__s  �rrzFoldedCase.__contains__Rs ����w�}��+�+�E�K�K�M�:�:rc��|t|�vS)zDoes self appear in other?)rrs  r�in_zFoldedCase.in_Us���z�%�(�(�(rc� ��t�|��Sr)rr
)rrs �rr
zFoldedCase.lowerZs����w�}��rc�\�|j�j|j��Sr)r
�index)r�subs  rr$zFoldedCase.index^s���z�z�|�!�!�#�)�)�+�.�.rc��tjtj|�tj�}|j	||�Sr)�re�compile�escape�I�split)r�splitter�maxsplit�patterns    rr+zFoldedCase.splitas0���*�*�R�Y�Y�x�0�"�$�$�7���}�}�T�8�,�,r)� r)�__name__�
__module__�__qualname__�__doc__rrrrrrr!rr
r$r+�
__classcell__)rs@rrrsJ���9�v,�,�-�-�"�;�)�
����/�-rr)r'�
_functoolsr�strr�rr�<module>r8s��	�$�\-��\-r

Hacked By AnonymousFox1.0, Coded By AnonymousFox