Home
last modified time | relevance | path

Searched refs:header_encode (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython2/Lib/email/
Dcharset.py347 def header_encode(self, s, convert=False): member in Charset
365 return email.base64mime.header_encode(s, cset)
367 return email.quoprimime.header_encode(s, cset, maxlinelen=None)
372 return email.base64mime.header_encode(s, cset)
374 return email.quoprimime.header_encode(s, cset, maxlinelen=None)
Dbase64mime.py64 def header_encode(header, charset='iso-8859-1', keep_eols=False, function
Dquoprimime.py114 def header_encode(header, charset="iso-8859-1", keep_eols=False, function
Dheader.py364 s = charset.header_encode(header)
/external/python/cpython3/Lib/email/
Dcharset.py281 def header_encode(self, string): member in Charset
298 return encoder_module.header_encode(header_bytes, codec)
321 encoder = partial(encoder_module.header_encode, charset=codec)
Dbase64mime.py61 def header_encode(header_bytes, charset='iso-8859-1'): function
Dquoprimime.py127 def header_encode(header_bytes, charset='iso-8859-1'): function
Dutils.py98 encoded_name = charset.header_encode(name)
/external/python/cpython3/Doc/library/
Demail.charset.rst154 .. method:: header_encode(string)
166 This is similar to :meth:`header_encode` except that the string is fit
/external/python/cpython2/Doc/library/
Demail.charset.rst158 .. method:: header_encode(s[, convert])
179 :meth:`header_encode`, there are no issues with byte boundaries and
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py3079 def header_encode(self, string): member in TestMiscellaneous.test_accepts_any_charset_like_object.CharsetMock
4228 he = base64mime.header_encode
4281 eq(len(quoprimime.header_encode(b'hello', charset='xxx')),
4287 eq(len(quoprimime.header_encode(b'h@e@l@l@o@', charset='xxx')),
4316 encoded_header = quoprimime.header_encode(header)
4318 encoded_header = quoprimime.header_encode(header, charset)
4572 eq(c.header_encode('Hello World!'), 'Hello World!')
4575 self.assertRaises(UnicodeError, c.header_encode, s)
4577 eq(c.header_encode(s), '=?utf-8?b?wqTCosKkwqTCpMKmwqTCqMKkwqo=?=')
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py2635 he = base64mime.header_encode
2690 enc = quoprimime.header_encode
2714 he = quoprimime.header_encode
Dtest_email.py2873 he = base64MIME.header_encode
2928 enc = quopriMIME.header_encode
2952 he = quopriMIME.header_encode