/external/python/cpython2/Lib/ |
D | base64.py | 56 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))
|
D | stringold.py | 382 def maketrans(fromstr, tostr): function 429 from strop import maketrans, lowercase, uppercase, whitespace
|
D | string.py | 61 def maketrans(fromstr, tostr): function 530 from strop import maketrans, lowercase, uppercase, whitespace
|
D | textwrap.py | 82 whitespace_trans = string.maketrans(_whitespace, ' ' * len(_whitespace))
|
D | xmllib.py | 73 attrtrans = string.maketrans(' \r\n\t', ' ')
|
/external/tensorflow/tensorflow/python/profiler/ |
D | pprof_profiler.py | 54 maketrans = string.maketrans variable 56 maketrans = str.maketrans variable 439 maketrans('/:', '__'))
|
/external/python/cpython3/Lib/ |
D | base64.py | 61 return encoded.translate(bytes.maketrans(b'+/', altchars)) 84 s = s.translate(bytes.maketrans(altchars, b'+/')) 108 _urlsafe_encode_translation = bytes.maketrans(b'+/', b'-_') 109 _urlsafe_decode_translation = bytes.maketrans(b'-_', b'+/') 212 s = s.translate(bytes.maketrans(b'01', b'O' + map01))
|
D | shlex.py | 65 t = self.wordchars.maketrans(dict.fromkeys(punctuation_chars))
|
/external/python/cpython3/Lib/test/ |
D | test_unicode.py | 329 tbl = self.type2test.maketrans({'a': None, 'b': '<i>'}) 332 tbl = self.type2test.maketrans('abc', 'xyz', 'd') 337 self.assertEqual("[a]".translate(str.maketrans('a', 'X')), 339 self.assertEqual("[a]".translate(str.maketrans({'a': 'X'})), 341 self.assertEqual("[a]".translate(str.maketrans({'a': None})), 343 self.assertEqual("[a]".translate(str.maketrans({'a': 'XXX'})), 345 self.assertEqual("[a]".translate(str.maketrans({'a': '\xe9'})), 347 self.assertEqual('axb'.translate(str.maketrans({'a': None, 'b': '123'})), 349 self.assertEqual('axb'.translate(str.maketrans({'a': None, 'b': '\xe9'})), 353 self.assertEqual("[a]".translate(str.maketrans({'a': '<\xe9>'})), [all …]
|
D | test_funcattrs.py | 397 self.assertEqual(str.maketrans.__qualname__, 'str.maketrans') 398 self.assertEqual(bytes.maketrans.__qualname__, 'bytes.maketrans')
|
D | test_bytes.py | 858 self.assertEqual(self.type2test.maketrans(b'abc', b'xyz'), transtable) 860 self.assertEqual(self.type2test.maketrans(b'\375\376\377', b'xyz'), transtable) 861 self.assertRaises(ValueError, self.type2test.maketrans, b'abc', b'xyzq') 862 self.assertRaises(TypeError, self.type2test.maketrans, 'abc', 'def')
|
/external/python/cpython2/Lib/test/ |
D | test_strop.py | 108 self.assertTrue(strop.maketrans("abc", "xyz") == transtable) 109 self.assertRaises(ValueError, strop.maketrans, "abc", "xyzq")
|
D | test_string.py | 95 self.assertEqual(string.maketrans('abc', 'xyz'), transtable) 96 self.assertRaises(ValueError, string.maketrans, 'abc', 'xyzq')
|
D | string_tests.py | 1322 string.maketrans('abc', 'xyz') 1324 self.assertRaises(ValueError, string.maketrans, 'abc', 'xyzw') 1327 table = string.maketrans('abc', 'xyz') 1330 table = string.maketrans('a', 'A')
|
/external/python/cpython2/Lib/plat-riscos/ |
D | rourl2path.py | 10 __slash_dot = string.maketrans("/.", "./")
|
/external/python/cpython2/Lib/distutils/ |
D | fancy_getopt.py | 31 longopt_xlate = string.maketrans('-', '_') 408 WS_TRANS = string.maketrans(string.whitespace, ' ' * len(string.whitespace))
|
/external/tensorflow/tensorflow/tools/test/ |
D | run_and_gather_logs.py | 88 six.ensure_str(name).strip("/").translate(str.maketrans("/:", "__")) +
|
/external/autotest/client/site_tests/graphics_GLMark2/ |
D | graphics_GLMark2.py | 29 description_table = string.maketrans(':,=;', '.-__')
|
/external/webrtc/tools_webrtc/sslroots/ |
D | generate_sslroots.py | 181 translation_table = string.maketrans(bad_chars, replacement_chars)
|
/external/python/cpython3/Lib/distutils/ |
D | fancy_getopt.py | 27 longopt_xlate = str.maketrans('-', '_')
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.1.rst | 154 * The :func:`string.maketrans` function is deprecated and is replaced by new 155 static methods, :meth:`bytes.maketrans` and :meth:`bytearray.maketrans`. 158 :class:`bytearray` each have their own **maketrans** and **translate**
|
/external/python/cpython2/Lib/distutils/command/ |
D | build_ext.py | 632 all_dots = string.maketrans('/'+os.sep, '..')
|
/external/python/cpython3/Lib/collections/ |
D | __init__.py | 1451 maketrans = str.maketrans variable in UserString
|
/external/autotest/client/bin/ |
D | partition.py | 791 return names.translate(string.maketrans('[]', ' ')).split()
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0b1.rst | 205 casefold(), format_map(), isprintable(), and maketrans(). Patch by Joe
|