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

/external/python/cpython3/Lib/email/
H A Dcontentmanager.py142 def _encode_text(string, charset, cte, policy):
147 if cte==None:
162 cte = 'base64'
164 cte = 'quoted-printable'
166 return cte, sniff_qp
167 if cte == '7bit':
169 elif cte == '8bit':
171 elif cte == 'quoted-printable':
174 elif cte == 'base64':
177 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
145 =?charset*lang?cte?encoded_string?=
153 the cte-decoded string does not successfully decode using the specified
161 _, charset, cte, cte_string, _ = ew.split('?')
163 cte = cte.lower()
166 bstring, defects = _cte_decoders[cte](bstrin
[all...]
H A Dmessage.py261 # cte might be a Header, so for now stringify it.
262 cte = str(self.get('content-transfer-encoding', '')).lower()
283 if cte == 'quoted-printable':
285 elif cte == 'base64':
292 elif cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
356 cte = charset.get_body_encoding()
358 cte(self)
370 self.add_header('Content-Transfer-Encoding', cte)
H A Dheaderregistry.py513 self._cte = utils._sanitize(self._parse_tree.cte)
516 def cte(self): member in class:ContentTransferEncodingHeader
H A D_header_value_parser.py589 cte = None variable in class:EncodedWord
595 if self.cte is not None:
596 return self.cte
1202 cte = '7bit' variable in class:ContentTransferEncoding
1441 ew.cte = value
1447 "encoded word format invalid: '{}'".format(ew.cte))
2958 cte_header.cte = token.value.strip().lower()
/external/python/cpython3/Lib/test/test_email/
H A Dtest_inversion.py53 'base64_text': dict(payload=(('xy a'*40+'\n')*5), cte='base64'),
54 'qp_text': dict(payload=(('xy a'*40+'\n')*5), cte='quoted-printable'),
H A Dtest_contentmanager.py459 raw_data_manager.set_content(m,"áàäéèęöő.\n", cte='7bit')
469 raw_data_manager.set_content(m,"áàäéèęöő.\n", cte='7bit', charset='ascii')
527 # XXX: the first cte should be 7bit, too...that's a generator bug.
551 for cte in 'quoted-printable base64'.split():
553 with self.subTest(cte=cte, subtype=subtype):
555 m.set_content(content, subtype, cte=cte)
557 self.assertIn(cte, exc)
560 for cte i
[all...]
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.py758 cte,
766 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
1565 # whitespace in the cte encoded block is RFC-irrelevant.
2158 for cte in ('7bit', '8bit', 'BINary'):
2161 "\nContent-Transfer-Encoding: {}".format(cte)))
3753 Content-Transfer-Encoding: {cte}
3760 cte='8bit',
3769 cte='8bit',
3787 cte='quoted-printable',
3802 cte
[all...]
H A Dtest__header_value_parser.py2454 cte = self._test_parse_x(
/external/python/cpython2/Lib/email/
H A Dmessage.py199 cte = self.get('content-transfer-encoding', '').lower()
200 if cte == 'quoted-printable':
202 elif cte == 'base64':
208 elif cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
268 cte = charset.get_body_encoding()
270 cte(self)
273 self.add_header('Content-Transfer-Encoding', cte)
/external/skia/src/effects/
H A DSkTableColorFilter.cpp376 const ColorTableEffect& cte = proc.cast<ColorTableEffect>(); local
377 if (cte.atlas()) {
378 SkScalar yDelta = cte.atlas()->getNormalizedTexelHeight();
379 rgbaYValues[3] = cte.atlas()->getYOffset(cte.atlasRow()) + SK_ScalarHalf * yDelta;
/external/skqp/src/effects/
H A DSkTableColorFilter.cpp376 const ColorTableEffect& cte = proc.cast<ColorTableEffect>(); local
377 if (cte.atlas()) {
378 SkScalar yDelta = cte.atlas()->getNormalizedTexelHeight();
379 rgbaYValues[3] = cte.atlas()->getYOffset(cte.atlasRow()) + SK_ScalarHalf * yDelta;
/external/python/cpython2/Lib/
H A Dmimify.py277 cte = re.compile('^content-transfer-encoding:', re.I) variable
300 if cte.match(line):
360 if has_cte and cte.match(line):
/external/curl/lib/
H A Dmime.c1693 const char *cte = NULL; local
1790 cte = part->encoder->name;
1793 cte = "8bit";
1794 if(cte) {
1796 "Content-Transfer-Encoding: %s", cte);
/external/python/cpython2/Lib/email/test/
H A Dtest_email.py237 for cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
238 msg['content-transfer-encoding'] = cte
H A Dtest_email_renamed.py209 for cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
210 msg['content-transfer-encoding'] = cte

Completed in 362 milliseconds