Home
last modified time | relevance | path

Searched refs:istext (Results 1 - 5 of 5) sorted by relevance

/third_party/python/Lib/re/
H A D_parser.py223 self.istext = isinstance(string, str)
225 if not self.istext:
291 if not self.istext:
299 if not (self.istext or name.isascii()):
323 elif c == "u" and source.istext:
329 elif c == "U" and source.istext:
337 elif c == "N" and source.istext:
383 elif c == "u" and source.istext:
389 elif c == "U" and source.istext:
397 elif c == "N" and source.istext
[all...]
/third_party/python/Modules/clinic/
H A Dbinascii.c.h555 "b2a_qp($module, /, data, quotetabs=False, istext=True, header=False)\n"
560 "On encoding, when istext is set, newlines are not encoded, and white\n"
561 "space at end of lines is. When istext is not set, \\r and \\n (CR/LF)\n"
569 int istext, int header);
575 static const char * const _keywords[] = {"data", "quotetabs", "istext", "header", NULL}; in binascii_b2a_qp()
581 int istext = 1; in binascii_b2a_qp() local
608 istext = _PyLong_AsInt(args[2]); in binascii_b2a_qp()
609 if (istext == -1 && PyErr_Occurred()) { in binascii_b2a_qp()
621 return_value = binascii_b2a_qp_impl(module, &data, quotetabs, istext, header); in binascii_b2a_qp()
/third_party/python/Lib/test/
H A Dtest_binascii.py337 self.assertEqual(b2a_qp(type2test(b'x y\tz'), istext=False),
343 self.assertEqual(b2a_qp(type2test(b'x \ny\t\n'), istext=False),
349 self.assertEqual(b2a_qp(type2test(b'x \ry\t\r'), istext=False),
355 self.assertEqual(b2a_qp(type2test(b'x \r\ny\t\r\n'), istext=False),
364 self.assertEqual(b2a_qp(type2test(b'x \r\n')[:-1], istext=False),
366 self.assertEqual(b2a_qp(type2test(b'x\t\r\n')[:-1], istext=False),
/third_party/python/Modules/
H A Dbinascii.c1055 istext: bool(accept={int}) = True
1060 On encoding, when istext is set, newlines are not encoded, and white
1061 space at end of lines is. When istext is not set, \r and \n (CR/LF)
1067 int istext, int header) in binascii_b2a_qp_impl()
1101 (!istext && ((databuf[in] == '\r') || (databuf[in] == '\n'))) || in binascii_b2a_qp_impl()
1119 if (istext && in binascii_b2a_qp_impl()
1175 (!istext && ((databuf[in] == '\r') || (databuf[in] == '\n'))) || in binascii_b2a_qp_impl()
1194 if (istext && in binascii_b2a_qp_impl()
1066 binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs, int istext, int header) binascii_b2a_qp_impl() argument
/third_party/python/Lib/email/
H A Dcontentmanager.py240 data = binascii.b2a_qp(data, istext=False, header=False, quotetabs=True)

Completed in 5 milliseconds