Home
last modified time | relevance | path

Searched refs:cte (Results 1 – 25 of 26) sorted by relevance

12

/external/python/cpython3/Lib/email/
Dcontentmanager.py142 def _encode_text(string, charset, cte, policy): argument
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 …]
D_encoded_words.py173 _, charset, cte, cte_string, _ = ew.split('?')
175 cte = cte.lower()
178 bstring, defects = _cte_decoders[cte](bstring)
Dmessage.py260 cte = str(self.get('content-transfer-encoding', '')).lower()
281 if cte == 'quoted-printable':
283 elif cte == 'base64':
290 elif cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
354 cte = charset.get_body_encoding()
356 cte(self)
368 self.add_header('Content-Transfer-Encoding', cte)
Dheaderregistry.py515 self._cte = utils._sanitize(self._parse_tree.cte)
518 def cte(self): member in ContentTransferEncodingHeader
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()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DPKWareExtraHeader.java219 final Map<Integer, EncryptionAlgorithm> cte = new HashMap<>();
221 cte.put(method.getCode(), method); in method.getCode()
223 codeToEnum = Collections.unmodifiableMap(cte);
274 final Map<Integer, HashAlgorithm> cte = new HashMap<>();
276 cte.put(method.getCode(), method); in method.getCode()
278 codeToEnum = Collections.unmodifiableMap(cte);
DZipMethod.java183 final Map<Integer, ZipMethod> cte = new HashMap<>();
185 cte.put(method.getCode(), method); in method.getCode()
187 codeToEnum = Collections.unmodifiableMap(cte);
/external/python/cpython3/Lib/test/test_email/
Dtest_contentmanager.py487 raw_data_manager.set_content(m,"áàäéèęöő.\n", cte='7bit')
497 raw_data_manager.set_content(m,"áàäéèęöő.\n", cte='7bit', charset='ascii')
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 in '8bit binary'.split():
589 with self.subTest(cte=cte, subtype=subtype):
591 m.set_content(content, subtype, cte=cte)
593 self.assertIn(cte, exc)
[all …]
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'),
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)
Dtest_headerregistry.py780 cte,
788 self.assertEqual(h.cte, cte)
Dtest_email.py262 for cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
263 msg['content-transfer-encoding'] = cte
2199 for cte in ('7bit', '8bit', 'BINary'):
2202 "\nContent-Transfer-Encoding: {}".format(cte)))
3817 cte='8bit',
3826 cte='8bit',
3844 cte='quoted-printable',
3859 cte='quoted-printable',
3872 cte='base64',
3884 cte='uuencode',
Dtest__header_value_parser.py2579 cte = self._test_parse_x(
/external/python/cpython3/Doc/library/
Demail.contentmanager.rst120 cte=None, \
123 set_content(msg, <'bytes'>, maintype, subtype, cte="base64", \
126 set_content(msg, <'EmailMessage'>, cte=None, \
150 If *cte* is set, encode the payload using the specified content transfer
152 that value. Possible values for *cte* are ``quoted-printable``,
154 encoded in the specified encoding (for example, specifying a *cte* of
158 * For ``str`` objects, if *cte* is not set use heuristics to
161 an error if a *cte* of ``quoted-printable`` or ``base64`` is
162 requested for *subtype* ``rfc822``, and for any *cte* other than
164 ``message/rfc822``, use ``8bit`` if *cte* is not specified. For
[all …]
Demail.encoders.rst12 new API the functionality is provided by the *cte* parameter of
Demail.headerregistry.rst301 .. attribute:: cte
/external/python/cpython2/Lib/email/
Dmessage.py197 cte = self.get('content-transfer-encoding', '').lower()
198 if cte == 'quoted-printable':
200 elif cte == 'base64':
206 elif cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
266 cte = charset.get_body_encoding()
268 cte(self)
271 self.add_header('Content-Transfer-Encoding', cte)
/external/skia/src/effects/
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()
/external/python/cpython2/Lib/
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/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DDifferenceElementCalculator.java139 ChildTextElement cte = (ChildTextElement) el; in considerRemoval() local
140 … considerRemoval(LexicalPreservingPrinter.getOrCreateNodeText(cte.getChild()), elements); in considerRemoval()
/external/curl/lib/
Dmime.c1806 const char *cte = NULL; in Curl_mime_prepare_headers() local
1903 cte = part->encoder->name; in Curl_mime_prepare_headers()
1906 cte = "8bit"; in Curl_mime_prepare_headers()
1907 if(cte) { in Curl_mime_prepare_headers()
1909 "Content-Transfer-Encoding: %s", cte); in Curl_mime_prepare_headers()
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py209 for cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
210 msg['content-transfer-encoding'] = cte
Dtest_email.py237 for cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
238 msg['content-transfer-encoding'] = cte
/external/cldr/tools/java/org/unicode/cldr/util/data/
Diso-639-3_Name_Index.tab1477 cte Tepinapa Chinantec Chinantec, Tepinapa
Diso-639-3.tab1421 cte I L Tepinapa Chinantec

12