/external/python/cpython3/Lib/email/ |
D | contentmanager.py | 142 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.py | 173 _, charset, cte, cte_string, _ = ew.split('?') 175 cte = cte.lower() 178 bstring, defects = _cte_decoders[cte](bstring)
|
D | message.py | 260 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)
|
D | headerregistry.py | 516 self._cte = utils._sanitize(self._parse_tree.cte) 519 def cte(self): member in ContentTransferEncodingHeader
|
D | _header_value_parser.py | 214 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/ |
D | cfb_console.c | 1170 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 …]
|
D | video_bmp.c | 175 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()
|
D | atmel_lcdfb.c | 108 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/ |
D | PKWareExtraHeader.java | 219 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);
|
D | ZipMethod.java | 183 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/ |
D | test_contentmanager.py | 459 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 …]
|
D | test_inversion.py | 53 'base64_text': dict(payload=(('xy a'*40+'\n')*5), cte='base64'), 54 'qp_text': dict(payload=(('xy a'*40+'\n')*5), cte='quoted-printable'),
|
D | test_defect_handling.py | 135 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)
|
D | test_headerregistry.py | 779 cte, 787 self.assertEqual(h.cte, cte)
|
D | test_email.py | 262 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',
|
D | test__header_value_parser.py | 2492 cte = self._test_parse_x(
|
/external/python/cpython3/Doc/library/ |
D | email.contentmanager.rst | 120 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 …]
|
D | email.encoders.rst | 12 new API the functionality is provided by the *cte* parameter of
|
D | email.headerregistry.rst | 301 .. attribute:: cte
|
/external/python/cpython2/Lib/email/ |
D | message.py | 197 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/ |
D | lcd.c | 556 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/ |
D | mimify.py | 277 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/ |
D | mime.c | 1676 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/ |
D | test_email_renamed.py | 209 for cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'): 210 msg['content-transfer-encoding'] = cte
|
D | test_email.py | 237 for cte in ('x-uuencode', 'uuencode', 'uue', 'x-uue'): 238 msg['content-transfer-encoding'] = cte
|