Home
last modified time | relevance | path

Searched refs:swapcase (Results 1 – 21 of 21) 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.py856 self.assertEqual('\U0001044F'.swapcase(), '\U00010427')
857 self.assertEqual('\U00010427'.swapcase(), '\U0001044F')
858 self.assertEqual('\U0001044F\U0001044F'.swapcase(),
860 self.assertEqual('\U00010427\U0001044F'.swapcase(),
862 self.assertEqual('\U0001044F\U00010427'.swapcase(),
864 self.assertEqual('X\U00010427x\U0001044F'.swapcase(),
866 self.assertEqual('fi'.swapcase(), 'FI')
867 self.assertEqual('\u0130'.swapcase(), '\u0069\u0307')
869 self.assertEqual('\u03a3'.swapcase(), '\u03c3')
870 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.py532 s2 = s.swapcase().swapcase()
Dtest_zlib.py639 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/python/cpython3/Lib/collections/
D__init__.py1495 def swapcase(self): member in UserString
1496 return self.__class__(self.data.swapcase())
/external/tensorflow/
D.pylintrc314 ….join,string.joinfields,string.lstrip,string.rstrip,string.strip,string.swapcase,string.translate,…
/external/tensorflow/tensorflow/tools/ci_build/
Dpylintrc314 ….join,string.joinfields,string.lstrip,string.rstrip,string.strip,string.swapcase,string.translate,…
/external/python/cpython3/Doc/library/
Dstdtypes.rst2094 .. method:: str.swapcase()
2098 ``s.swapcase().swapcase() == s``.
3284 .. method:: bytes.swapcase()
3285 bytearray.swapcase()
3292 >>> b'Hello World'.swapcase()
3299 Unlike :func:`str.swapcase()`, it is always the case that
3300 ``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).