Home
last modified time | relevance | path

Searched refs:quotetabs (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython2/Lib/
Dquopri.py21 def needsquoting(c, quotetabs, header): argument
29 return quotetabs
42 def encode(input, output, quotetabs, header = 0): argument
55 odata = b2a_qp(data, quotetabs = quotetabs, header = header)
82 if needsquoting(c, quotetabs, header):
105 def encodestring(s, quotetabs = 0, header = 0): argument
107 return b2a_qp(s, quotetabs = quotetabs, header = header)
111 encode(infp, outfp, quotetabs, header)
/external/python/cpython3/Lib/
Dquopri.py21 def needsquoting(c, quotetabs, header): argument
30 return quotetabs
44 def encode(input, output, quotetabs, header=False): argument
55 odata = b2a_qp(data, quotetabs=quotetabs, header=header)
83 if needsquoting(c, quotetabs, header):
106 def encodestring(s, quotetabs=False, header=False): argument
108 return b2a_qp(s, quotetabs=quotetabs, header=header)
112 encode(infp, outfp, quotetabs, header)
/external/python/cpython2/Doc/library/
Dquopri.rst35 .. function:: encode(input, output, quotetabs)
40 ``input.readline()`` returns an empty string. *quotetabs* is a flag which
52 .. function:: encodestring(s[, quotetabs])
55 corresponding encoded string. *quotetabs* is optional (defaulting to 0), and is
Dbinascii.rst61 .. function:: b2a_qp(data[, quotetabs, istext, header])
65 *quotetabs* is present and true, all tabs and spaces will be encoded. If the
Dcodecs.rst1212 | | quotedprintable | quoted printable | ``quotetabs=True``, …
/external/python/cpython3/Doc/library/
Dquopri.rst33 .. function:: encode(input, output, quotetabs, header=False)
37 :term:`binary file objects <file object>`. *quotetabs*, a
52 .. function:: encodestring(s, quotetabs=False, header=False)
56 ``False`` value to *quotetabs* parameter of the :func:`encode` function.
Dbinascii.rst76 .. function:: b2a_qp(data, quotetabs=False, istext=True, header=False)
80 *quotetabs* is present and true, all tabs and spaces will be encoded. If the
Dcodecs.rst1358 | | quotedprintable, | quoted printable. | ``quotetabs=True`` / …
/external/python/cpython2/Lib/test/
Dtest_binascii.py223 self.assertEqual(b2a_qp(type2test(b'x y'), header=True, quotetabs=True),
236 self.assertEqual(b2a_qp(type2test(b'\0\n'), quotetabs=True), b'=00\n')
239 self.assertEqual(b2a_qp(type2test(b'x y\tz'), quotetabs=True),
245 self.assertEqual(b2a_qp(type2test(b'x \ny\t\n'), quotetabs=True),
251 self.assertEqual(b2a_qp(type2test(b'x \ry\t\r'), quotetabs=True),
257 self.assertEqual(b2a_qp(type2test(b'x \r\ny\t\r\n'), quotetabs=True),
264 self.assertEqual(b2a_qp(type2test(b'x \r\n')[:-1], quotetabs=True),
266 self.assertEqual(b2a_qp(type2test(b'x\t\r\n')[:-1], quotetabs=True),
Dtest_quopri.py150 quopri.encode(infp, outfp, quotetabs=False)
164 self.assertTrue(quopri.encodestring(p, quotetabs=True) == e)
/external/python/cpython3/Lib/test/
Dtest_binascii.py305 self.assertEqual(b2a_qp(type2test(b'x y'), header=True, quotetabs=True),
318 self.assertEqual(b2a_qp(type2test(b'\0\n'), quotetabs=True), b'=00\n')
321 self.assertEqual(b2a_qp(type2test(b'x y\tz'), quotetabs=True),
327 self.assertEqual(b2a_qp(type2test(b'x \ny\t\n'), quotetabs=True),
333 self.assertEqual(b2a_qp(type2test(b'x \ry\t\r'), quotetabs=True),
339 self.assertEqual(b2a_qp(type2test(b'x \r\ny\t\r\n'), quotetabs=True),
346 self.assertEqual(b2a_qp(type2test(b'x \r\n')[:-1], quotetabs=True),
348 self.assertEqual(b2a_qp(type2test(b'x\t\r\n')[:-1], quotetabs=True),
Dtest_quopri.py156 quopri.encode(infp, outfp, quotetabs=False)
170 self.assertEqual(quopri.encodestring(p, quotetabs=True), e)
/external/python/cpython3/Modules/clinic/
Dbinascii.c.h721 binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs,
733 int quotetabs = 0; in binascii_b2a_qp() local
757 quotetabs = _PyLong_AsInt(args[1]); in binascii_b2a_qp()
758 if (quotetabs == -1 && PyErr_Occurred()) { in binascii_b2a_qp()
789 return_value = binascii_b2a_qp_impl(module, &data, quotetabs, istext, header); in binascii_b2a_qp()
/external/python/cpython3/Lib/email/
Dencoders.py21 enc = _encodestring(s, quotetabs=True)
Dcontentmanager.py238 data = binascii.b2a_qp(data, istext=False, header=False, quotetabs=True)
/external/python/cpython2/Lib/email/
Dencoders.py21 enc = _encodestring(s, quotetabs=True)
/external/python/cpython3/Lib/encodings/
Dquopri_codec.py14 quopri.encode(f, g, quotetabs=True)
/external/python/cpython2/Lib/encodings/
Dquopri_codec.py24 quopri.encode(f, g, quotetabs=True)
/external/python/cpython2/Modules/
Dbinascii.c1297 int quotetabs = 0; in binascii_b2a_qp() local
1304 &quotetabs, &istext, &header)) in binascii_b2a_qp()
1331 (quotetabs || in binascii_b2a_qp()
1332 (!quotetabs && ((data[in] != '\t') && (data[in] != ' ')))))) in binascii_b2a_qp()
1411 (quotetabs || ((data[in] != '\t') && (data[in] != ' '))))) in binascii_b2a_qp()
/external/python/cpython3/Modules/
Dbinascii.c1405 binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs, in binascii_b2a_qp_impl() argument
1444 (quotetabs || ((databuf[in] != '\t') && (databuf[in] != ' '))))) in binascii_b2a_qp_impl()
1518 (quotetabs || ((databuf[in] != '\t') && (databuf[in] != ' '))))) in binascii_b2a_qp_impl()