Home
last modified time | relevance | path

Searched refs:maketrans (Results 1 – 23 of 23) sorted by relevance

/external/python/cpython2/Lib/
Dbase64.py56 return encoded.translate(string.maketrans(b'+/', altchars[:2]))
73 s = s.translate(string.maketrans(altchars[:2], '+/'))
98 _urlsafe_encode_translation = string.maketrans(b'+/', b'-_')
99 _urlsafe_decode_translation = string.maketrans(b'-_', b'+/')
210 s = s.translate(string.maketrans(b'01', b'O' + map01))
Dstringold.py382 def maketrans(fromstr, tostr): function
429 from strop import maketrans, lowercase, uppercase, whitespace
Dstring.py61 def maketrans(fromstr, tostr): function
530 from strop import maketrans, lowercase, uppercase, whitespace
Dtextwrap.py82 whitespace_trans = string.maketrans(_whitespace, ' ' * len(_whitespace))
Dxmllib.py73 attrtrans = string.maketrans(' \r\n\t', ' ')
Dzipfile.py1066 table = string.maketrans(illegal, '_' * len(illegal))
/external/python/cpython2/Lib/test/
Dtest_strop.py107 self.assertTrue(strop.maketrans("abc", "xyz") == transtable)
108 self.assertRaises(ValueError, strop.maketrans, "abc", "xyzq")
Dtest_string.py95 self.assertEqual(string.maketrans('abc', 'xyz'), transtable)
96 self.assertRaises(ValueError, string.maketrans, 'abc', 'xyzq')
Dstring_tests.py1322 string.maketrans('abc', 'xyz')
1324 self.assertRaises(ValueError, string.maketrans, 'abc', 'xyzw')
1327 table = string.maketrans('abc', 'xyz')
1330 table = string.maketrans('a', 'A')
Dtest_urllib2.py37 fname = fname.translate(string.maketrans("/.", "./"))
Dtest_bigmem.py431 trans = string.maketrans('.aZ', '-!$')
/external/python/cpython2/Lib/plat-riscos/
Drourl2path.py10 __slash_dot = string.maketrans("/.", "./")
/external/python/cpython2/Lib/distutils/
Dfancy_getopt.py31 longopt_xlate = string.maketrans('-', '_')
408 WS_TRANS = string.maketrans(string.whitespace, ' ' * len(string.whitespace))
/external/autotest/client/site_tests/graphics_GLMark2/
Dgraphics_GLMark2.py29 description_table = string.maketrans(':,=;', '.-__')
/external/webrtc/tools/sslroots/
Dgenerate_sslroots.py181 translation_table = string.maketrans(bad_chars, replacement_chars)
/external/devlib/devlib/utils/
Dmisc.py489 TRANS_TABLE = string.maketrans(BAD_CHARS, '_' * len(BAD_CHARS))
/external/python/cpython2/Lib/distutils/command/
Dbuild_ext.py632 all_dots = string.maketrans('/'+os.sep, '..')
/external/autotest/client/bin/
Dpartition.py790 return names.translate(string.maketrans('[]', ' ')).split()
/external/chromium-trace/catapult/third_party/zipfile/
Dzipfile_2_7_13.py1066 table = string.maketrans(illegal, '_' * len(illegal))
/external/autotest/site_utils/rpm_control_system/
DBeautifulSoup.py1973 c.EBCDIC_TO_ASCII_MAP = string.maketrans( \
/external/python/cpython2/Doc/library/
Dstring.rst784 .. function:: maketrans(from, to)
Dstdtypes.rst1355 You can use the :func:`~string.maketrans` helper function in the :mod:`string`
/external/python/cpython2/Misc/
DHISTORY13799 - The string.maketrans() requires its first two arguments to be
14691 characters to delete. New function string.maketrans() creates a