ev.SSKrSSKJr "SS\5rg)N) method_cachecv^\rSrSrSrSrSrSrSrSr U4Sjr S r \ U4S j5r S rSS jrS rU=r$) 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 cDUR5UR5:$Nlowerselfothers >/opt/imh/python3.13/lib/python3.13/importlib/metadata/_text.py__lt__FoldedCase.__lt__Czz|ekkm++cDUR5UR5:$r r r s r__gt__FoldedCase.__gt__FrrcDUR5UR5:H$r r r s r__eq__FoldedCase.__eq__Izz|u{{},,rcDUR5UR5:g$r r r s r__ne__FoldedCase.__ne__Lrrc4[UR55$r )hashr )r s r__hash__FoldedCase.__hash__OsDJJL!!rcZ>[TU]5RUR55$r )superr __contains__)r r __class__s rr$FoldedCase.__contains__Rs w}++EKKM::rcU[U5;$)zDoes self appear in other?)rr s rin_FoldedCase.in_Usz%(((rc >[TU]5$r )r#r )r r%s rr FoldedCase.lowerZsw}rc\UR5RUR55$r )r index)r subs rr-FoldedCase.index^szz|!!#))+..rc[R"[R"U5[R5nUR X5$r )recompileescapeIsplit)r splittermaxsplitpatterns rr5FoldedCase.splitas.**RYYx0"$$7}}T,,r) r)__name__ __module__ __qualname____firstlineno____doc__rrrrr r$r(rr r-r5__static_attributes__ __classcell__)r%s@rrrsO9v,,--";) /--rr)r1 _functoolsrstrrr:rrrEs $\-\-r