Home
last modified time | relevance | path

Searched refs:swapcase (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython2/Lib/
Dstringold.py64 def swapcase(s): function
71 return s.swapcase()
Dstring.py240 def swapcase(s): function
247 return s.swapcase()
DUserString.py126 def swapcase(self): return self.__class__(self.data.swapcase()) member in UserString
/external/python/cpython3/Lib/test/
Dtest_unicode.py886 self.assertEqual('\U0001044F'.swapcase(), '\U00010427')
887 self.assertEqual('\U00010427'.swapcase(), '\U0001044F')
888 self.assertEqual('\U0001044F\U0001044F'.swapcase(),
890 self.assertEqual('\U00010427\U0001044F'.swapcase(),
892 self.assertEqual('\U0001044F\U00010427'.swapcase(),
894 self.assertEqual('X\U00010427x\U0001044F'.swapcase(),
896 self.assertEqual('fi'.swapcase(), 'FI')
897 self.assertEqual('\u0130'.swapcase(), '\u0069\u0307')
899 self.assertEqual('\u03a3'.swapcase(), '\u03c3')
900 self.assertEqual('\u0345\u03a3'.swapcase(), '\u0399\u03c3')
[all …]
Dtest_bigmem.py429 s = s.swapcase()
431 self.assertEqual(s[:sublen * 3], SUBSTR.swapcase() * 3)
432 self.assertEqual(s[-sublen * 3:], SUBSTR.swapcase() * 3)
Dtest_sys.py574 s2 = s.swapcase().swapcase()
Dtest_zlib.py647 data1 = bytes(str(HAMLET_SCENE, "ascii").swapcase(), "ascii")
/external/python/cpython2/Lib/test/
Dtest_strop.py48 self.assertTrue(strop.swapcase("HeLLo cOmpUteRs") == "hEllO CoMPuTErS")
Dtest_unicode.py520 self.assertEqual(u'\U0001044F'.swapcase(), u'\U00010427')
521 self.assertEqual(u'\U00010427'.swapcase(), u'\U0001044F')
522 self.assertEqual(u'\U0001044F\U0001044F'.swapcase(),
524 self.assertEqual(u'\U00010427\U0001044F'.swapcase(),
526 self.assertEqual(u'\U0001044F\U00010427'.swapcase(),
528 self.assertEqual(u'X\U00010427x\U0001044F'.swapcase(),
Dtest_bigmem.py416 s = s.swapcase()
418 self.assertEqual(s[:sublen * 3], SUBSTR.swapcase() * 3)
419 self.assertEqual(s[-sublen * 3:], SUBSTR.swapcase() * 3)
Dtest_zlib.py497 data1 = HAMLET_SCENE.swapcase()
Dtest_builtin.py640 s2 = s.swapcase().swapcase()
/external/cronet/net/data/verify_name_match_unittest/scripts/
Dgenerate_names.py99 return s.swapcase()
/external/python/cpython3/Lib/collections/
D__init__.py1543 def swapcase(self): member in UserString
1544 return self.__class__(self.data.swapcase())
/external/tensorflow/tensorflow/tools/ci_build/
Dpylintrc322 ….join,string.joinfields,string.lstrip,string.rstrip,string.strip,string.swapcase,string.translate,…
/external/tensorflow/
D.pylintrc322 ….join,string.joinfields,string.lstrip,string.rstrip,string.strip,string.swapcase,string.translate,…
/external/python/cpython3/Doc/library/
Dstdtypes.rst2128 .. method:: str.swapcase()
2132 ``s.swapcase().swapcase() == s``.
3319 .. method:: bytes.swapcase()
3320 bytearray.swapcase()
3327 >>> b'Hello World'.swapcase()
3334 Unlike :func:`str.swapcase()`, it is always the case that
3335 ``bin.swapcase().swapcase() == bin`` for the binary versions. Case
/external/python/cpython2/Doc/library/
Dstring.rst1003 .. function:: swapcase(s)
Dstdtypes.rst1318 .. method:: str.swapcase()
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a1.rst196 swapcase, casefold).
/external/python/cpython2/Misc/
Dcheatsheet507 s.swapcase() return a copy of s with uppercase characters converted
/external/python/cpython3/Misc/
DHISTORY983 title, swapcase, casefold).