Home
last modified time | relevance | path

Searched refs:cte (Results 1 - 13 of 13) sorted by relevance

/third_party/python/Lib/email/
H A Dcontentmanager.py144 def _encode_text(string, charset, cte, policy):
149 if cte is None:
164 cte = 'base64'
166 cte = 'quoted-printable'
168 return cte, sniff_qp
169 if cte == '7bit':
171 elif cte == '8bit':
173 elif cte == 'quoted-printable':
176 elif cte == 'base64':
179 raise ValueError("Unknown content transfer encoding {}".format(cte))
[all...]
H A D_encoded_words.py10 # =?charset[*lang]?cte?encoded_string?=
14 # cte (Content Transfer Encoding) is either 'q' or 'b' (ignoring case). In
25 # specified cte. 'defects' is a list of MessageDefect instances indicating any
37 # referenced by the cte specifier, and encode, which adds the appropriate
157 =?charset*lang?cte?encoded_string?=
165 the cte-decoded string does not successfully decode using the specified
173 _, charset, cte, cte_string, _ = ew.split('?')
175 cte = cte.lower()
178 bstring, defects = _cte_decoders[cte](bstrin
[all...]
H A Dmessage.py289 # cte might be a Header, so for now stringify it.
290 cte = str(self.get('content-transfer-encoding', '')).lower()
311 if cte == 'quoted-printable':
313 elif cte == 'base64':
320 elif cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
381 cte = charset.get_body_encoding()
383 cte(self)
395 self.add_header('Content-Transfer-Encoding', cte)
H A Dheaderregistry.py518 self._cte = utils._sanitize(self._parse_tree.cte)
521 def cte(self): member in ContentTransferEncodingHeader
H A D_header_value_parser.py219 cte = None variable in EncodedWord
837 cte = '7bit' variable in ContentTransferEncoding
1061 ew.cte = value
1067 "encoded word format invalid: '{}'".format(ew.cte))
2725 cte_header.cte = token.value.strip().lower()
/third_party/python/Lib/test/test_email/
H A Dtest_contentmanager.py487 raw_data_manager.set_content(m,"áàäéèęöő.\n", cte='7bit')
497 raw_data_manager.set_content(m,"áàäéèęöő.\n", cte='7bit', charset='ascii')
555 # XXX: the first cte should be 7bit, too...that's a generator bug.
579 for cte in 'quoted-printable base64'.split():
581 with self.subTest(cte=cte, subtype=subtype):
583 m.set_content(content, subtype, cte=cte)
585 self.assertIn(cte, exc)
588 for cte i
[all...]
H A Dtest_inversion.py61 'base64_text': dict(payload=(('xy a'*40+'\n')*5), cte='base64'),
62 'qp_text': dict(payload=(('xy a'*40+'\n')*5), cte='quoted-printable'),
H A Dtest_defect_handling.py135 for cte in ('7bit', '8bit', 'BINary'):
137 self.multipart_msg.format("\nContent-Transfer-Encoding: "+cte))
138 self.assertEqual(len(self.get_defects(msg)), 0, "cte="+cte)
H A Dtest_headerregistry.py808 cte,
816 self.assertEqual(h.cte, cte)
H A Dtest_email.py265 for cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
266 msg['content-transfer-encoding'] = cte
1640 # whitespace in the cte encoded block is RFC-irrelevant.
2233 for cte in ('7bit', '8bit', 'BINary'):
2236 "\nContent-Transfer-Encoding: {}".format(cte)))
3890 Content-Transfer-Encoding: {cte}
3897 cte='8bit',
3906 cte='8bit',
3924 cte='quoted-printable',
3939 cte
[all...]
H A Dtest__header_value_parser.py2579 cte = self._test_parse_x(
/third_party/skia/src/effects/
H A DSkTableColorFilter.cpp236 auto cte = ColorTableEffect::Make(std::move(inputFP), context, fBitmap); in asFragmentProcessor() local
237 return cte ? GrFPSuccess(std::move(cte)) : GrFPFailure(nullptr); in asFragmentProcessor()
/third_party/curl/lib/
H A Dmime.c1766 const char *cte = NULL; in Curl_mime_prepare_headers() local
1864 cte = part->encoder->name; in Curl_mime_prepare_headers()
1867 cte = "8bit"; in Curl_mime_prepare_headers()
1868 if(cte) { in Curl_mime_prepare_headers()
1870 "Content-Transfer-Encoding: %s", cte); in Curl_mime_prepare_headers()

Completed in 29 milliseconds