| Server IP : 121.121.20.254 / Your IP : 216.73.217.141 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python314/Lib/importlib/metadata/__pycache__/ |
Upload File : |
+
8��i� � �0 � ^ RI t ^RIHt ! R R]4 tR# )� N)�method_cachec � a a� ] tR t^t oRtR tR tR tR tR t V 3R lt
R t]V 3R l4 t
R
tR
R ltRtVtV ;t# )�
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 � V P 4 VP 4 8 # �N��lower��self�others &&�,C:\Python314\Lib\importlib\metadata\_text.py�__lt__�FoldedCase.__lt__C � � ��z�z�|�e�k�k�m�+�+� c �D � V P 4 VP 4 8� # r r r
s &&r
�__gt__�FoldedCase.__gt__F r r c �D � V P 4 VP 4 8H # r r r
s &&r
�__eq__�FoldedCase.__eq__I � � ��z�z�|�u�{�{�}�,�,r c �D � V P 4 VP 4 8g # r r r
s &&r
�__ne__�FoldedCase.__ne__L r r c �4 � \ V P 4 4 # r )�hashr )r s &r
�__hash__�FoldedCase.__hash__O s � ��D�J�J�L�!�!r c �Z <� \ SV ` 4 P VP 4 4 # r )�superr �__contains__)r r � __class__s &&�r
r"