Home
last modified time | relevance | path

Searched refs:cte (Results 1 – 25 of 28) 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.py516 self._cte = utils._sanitize(self._parse_tree.cte)
519 def cte(self): member in ContentTransferEncodingHeader
D_header_value_parser.py214 cte = None variable in EncodedWord
830 cte = '7bit' variable in ContentTransferEncoding
1032 ew.cte = value
1038 "encoded word format invalid: '{}'".format(ew.cte))
2552 cte_header.cte = token.value.strip().lower()
/external/u-boot/drivers/video/
Dcfb_console.c1170 struct bmp_color_table_entry cte; in display_rle8_bitmap() local
1189 cte = img->color_table[i]; in display_rle8_bitmap()
1190 video_set_lut(i, cte.red, cte.green, cte.blue); in display_rle8_bitmap()
1203 cte = img->color_table[i]; in display_rle8_bitmap()
1205 (((cte.red >> 3) << red_off) | in display_rle8_bitmap()
1206 ((cte.green >> green_shift) << 5) | in display_rle8_bitmap()
1207 cte.blue >> 3)); in display_rle8_bitmap()
1212 cte = img->color_table[i]; in display_rle8_bitmap()
1213 p[i].ce.dw = SWAP32((cte.red << 16) | in display_rle8_bitmap()
1214 (cte.green << 8) | in display_rle8_bitmap()
[all …]
Dvideo_bmp.c175 struct bmp_color_table_entry *cte, unsigned colours) in video_set_cmap() argument
183 *cmap = ((cte->red << 8) & 0xf800) | in video_set_cmap()
184 ((cte->green << 3) & 0x07e0) | in video_set_cmap()
185 ((cte->blue >> 3) & 0x001f); in video_set_cmap()
187 cte++; in video_set_cmap()
Datmel_lcdfb.c108 struct bmp_color_table_entry cte = bmp->color_table[i]; in lcd_set_cmap() local
109 lcd_setcolreg(i, cte.red, cte.green, cte.blue); in lcd_set_cmap()
/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.py459 raw_data_manager.set_content(m,"áàäéèęöő.\n", cte='7bit')
469 raw_data_manager.set_content(m,"áàäéèęöő.\n", cte='7bit', charset='ascii')
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 in '8bit binary'.split():
561 with self.subTest(cte=cte, subtype=subtype):
563 m.set_content(content, subtype, cte=cte)
565 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.py779 cte,
787 self.assertEqual(h.cte, cte)
Dtest_email.py262 for cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'):
263 msg['content-transfer-encoding'] = cte
2155 for cte in ('7bit', '8bit', 'BINary'):
2158 "\nContent-Transfer-Encoding: {}".format(cte)))
3757 cte='8bit',
3766 cte='8bit',
3784 cte='quoted-printable',
3799 cte='quoted-printable',
3812 cte='base64',
3824 cte='uuencode',
Dtest__header_value_parser.py2492 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/u-boot/common/
Dlcd.c556 struct bmp_color_table_entry cte; in lcd_set_cmap() local
560 cte = bmp->color_table[i]; in lcd_set_cmap()
561 *cmap = (((cte.red) << 8) & 0xf800) | in lcd_set_cmap()
562 (((cte.green) << 3) & 0x07e0) | in lcd_set_cmap()
563 (((cte.blue) >> 3) & 0x001f); in lcd_set_cmap()
/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/curl/lib/
Dmime.c1676 const char *cte = NULL; in Curl_mime_prepare_headers() local
1773 cte = part->encoder->name; in Curl_mime_prepare_headers()
1776 cte = "8bit"; in Curl_mime_prepare_headers()
1777 if(cte) { in Curl_mime_prepare_headers()
1779 "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

12