Searched refs:codecname (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_charmapcodec.py | 26 codecname = 'testcodec' variable 30 self.assertEqual(unicode('abc', codecname), u'abc') 31 self.assertEqual(unicode('xdef', codecname), u'abcdef') 32 self.assertEqual(unicode('defx', codecname), u'defabc') 33 self.assertEqual(unicode('dxf', codecname), u'dabcf') 34 self.assertEqual(unicode('dxfx', codecname), u'dabcfabc') 37 self.assertEqual(u'abc'.encode(codecname), 'abc') 38 self.assertEqual(u'xdef'.encode(codecname), 'abcdef') 39 self.assertEqual(u'defx'.encode(codecname), 'defabc') 40 self.assertEqual(u'dxf'.encode(codecname), 'dabcf') [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_charmapcodec.py | 26 codecname = 'testcodec' variable 30 self.assertEqual(str(b'abc', codecname), 'abc') 31 self.assertEqual(str(b'xdef', codecname), 'abcdef') 32 self.assertEqual(str(b'defx', codecname), 'defabc') 33 self.assertEqual(str(b'dxf', codecname), 'dabcf') 34 self.assertEqual(str(b'dxfx', codecname), 'dabcfabc') 37 self.assertEqual('abc'.encode(codecname), b'abc') 38 self.assertEqual('xdef'.encode(codecname), b'abcdef') 39 self.assertEqual('defx'.encode(codecname), b'defabc') 40 self.assertEqual('dxf'.encode(codecname), b'dabcf') [all …]
|
/external/python/cpython2/Lib/email/ |
D | charset.py | 145 def add_codec(charset, codecname): argument 152 CODEC_MAP[charset] = codecname
|
/external/python/cpython3/Lib/email/ |
D | charset.py | 146 def add_codec(charset, codecname): argument 153 CODEC_MAP[charset] = codecname
|
/external/python/cpython3/Doc/library/ |
D | email.charset.rst | 207 .. function:: add_codec(charset, codecname) 211 *charset* is the canonical name of a character set. *codecname* is the name of a
|
/external/python/cpython2/Doc/library/ |
D | email.charset.rst | 246 .. function:: add_codec(charset, codecname) 250 *charset* is the canonical name of a character set. *codecname* is the name of a
|