� !A?hv��6�ddlZddlmZGd�de��ZdS)�N�)� method_cachec�n��eZdZdZd�Zd�Zd�Zd�Zd�Z�fd�Z d�Z e �fd ���Z d �Z dd �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�V�|���|���kS�N��lower��self�others �E/opt/alt/python-internal/lib64/python3.11/importlib/metadata/_text.py�__lt__zFoldedCase.__lt__C����z�z�|�|�e�k�k�m�m�+�+�c�V�|���|���kSrr r s r�__gt__zFoldedCase.__gt__Frrc�V�|���|���kSrr r s r�__eq__zFoldedCase.__eq__I����z�z�|�|�u�{�{�}�}�,�,rc�V�|���|���kSrr r s r�__ne__zFoldedCase.__ne__Lrrc�D�t|�����Sr)�hashr )r s r�__hash__zFoldedCase.__hash__Os���D�J�J�L�L�!�!�!rc���t������|�����Sr)�superr � __contains__)r r � __class__s �rrzFoldedCase.__contains__Rs+����w�w�}�}���+�+�E�K�K�M�M�:�:�:rc�$�|t|��vS)zDoes self appear in other?)rr s r�in_zFoldedCase.in_Us���z�%�(�(�(�(rc�D��t�����Sr)rr )r rs �rr zFoldedCase.lowerZs����w�w�}�}���rc�t�|����|�����Sr)r �index)r �subs rr$zFoldedCase.index^s&���z�z�|�|�!�!�#�)�)�+�+�.�.�.r� rc��tjtj|��tj��}|�||��Sr)�re�compile�escape�I�split)r �splitter�maxsplit�patterns rr,zFoldedCase.splitas3���*�R�Y�x�0�0�"�$�7�7���}�}�T�8�,�,�,r)r&r)�__name__� __module__� __qualname__�__doc__rrrrrrr!rr r$r,� __classcell__)rs@rrrs��������9�9�v,�,�,�,�,�,�-�-�-�-�-�-�"�"�"�;�;�;�;�;�)�)�)� ������\��/�/�/�-�-�-�-�-�-�-�-rr)r(� _functoolsr�strr�rr�r8s^�� � � � �$�$�$�$�$�$�\-�\-�\-�\-�\-��\-�\-�\-�\-�\-r