/third_party/python/Lib/ |
D | codecs.py | 509 lines = newchars.splitlines(keepends=True) 531 def readline(self, size=None, keepends=True): argument 550 if not keepends: 551 line = line.splitlines(keepends=False)[0] 568 lines = line.splitlines(keepends=True) 583 if not keepends: 584 line = line.splitlines(keepends=False)[0] 587 line0withoutend = lines[0].splitlines(keepends=False)[0] 592 if keepends: 599 if line and not keepends: [all …]
|
D | string.py | 94 lines = self.template[:i].splitlines(keepends=True)
|
D | doctest.py | 1431 return example.source.splitlines(keepends=True) 1694 want_lines = want.splitlines(keepends=True) 1695 got_lines = got.splitlines(keepends=True)
|
/third_party/python/Objects/clinic/ |
D | bytesobject.c.h | 684 bytes_splitlines_impl(PyBytesObject *self, int keepends); 694 int keepends = 0; in bytes_splitlines() local 703 keepends = _PyLong_AsInt(args[0]); in bytes_splitlines() 704 if (keepends == -1 && PyErr_Occurred()) { in bytes_splitlines() 708 return_value = bytes_splitlines_impl(self, keepends); in bytes_splitlines()
|
D | bytearrayobject.c.h | 924 bytearray_splitlines_impl(PyByteArrayObject *self, int keepends); 934 int keepends = 0; in bytearray_splitlines() local 943 keepends = _PyLong_AsInt(args[0]); in bytearray_splitlines() 944 if (keepends == -1 && PyErr_Occurred()) { in bytearray_splitlines() 948 return_value = bytearray_splitlines_impl(self, keepends); in bytearray_splitlines()
|
D | unicodeobject.c.h | 1030 unicode_splitlines_impl(PyObject *self, int keepends); 1040 int keepends = 0; in unicode_splitlines() local 1049 keepends = _PyLong_AsInt(args[0]); in unicode_splitlines() 1050 if (keepends == -1 && PyErr_Occurred()) { in unicode_splitlines() 1054 return_value = unicode_splitlines_impl(self, keepends); in unicode_splitlines()
|
/third_party/python/Lib/test/ |
D | test_codecs.py | 157 def readalllines(input, keepends=True, size=None): argument 161 line = reader.readline(size=size, keepends=keepends) 193 reader.readline(keepends=True), 197 reader.readline(keepends=True), 203 reader.readline(keepends=False), 207 reader.readline(keepends=False), 335 self.assertEqual(reader.readline(keepends=False), "foo") 337 self.assertEqual(reader.readline(keepends=False), "") 338 self.assertEqual(reader.readline(keepends=False), "bar") 340 self.assertEqual(reader.readline(keepends=False), "baz") [all …]
|
D | test_gzip.py | 224 self.assertEqual(lines, 50 * data1.splitlines(keepends=True)) 468 lines = (data1 * 50).decode("ascii").splitlines(keepends=True)
|
D | string_tests.py | 1033 'splitlines', keepends=False) 1035 "\nabc\ndef\r\nghi\n\r", 'splitlines', keepends=True)
|
D | test_calendar.py | 375 for line in s.splitlines(keepends=False):
|
D | test_nntplib.py | 1231 return iter(b.splitlines(keepends=True)) 1236 return iter(b.splitlines(keepends=False))
|
/third_party/python/Doc/includes/ |
D | email-read-alternative.py | 30 print(''.join(simplest.get_content().splitlines(keepends=True)[:3]))
|
/third_party/markupsafe/ |
D | __init__.py | 139 def splitlines(self, keepends: bool = False) -> t.List["Markup"]: # type: ignore 140 return [self.__class__(v) for v in super().splitlines(keepends)]
|
/third_party/python/Objects/stringlib/ |
D | split.h | 338 int keepends) in STRINGLIB() 370 if (keepends) in STRINGLIB()
|
/third_party/python/Lib/test/test_email/ |
D | __init__.py | 62 return [repr(x) for x in b.splitlines(keepends=True)]
|
/third_party/python/Doc/library/ |
D | difflib.rst | 245 >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), 246 ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) 269 >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), 270 ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) 702 ... '''.splitlines(keepends=True) 711 ... '''.splitlines(keepends=True)
|
D | codecs.rst | 774 .. method:: readline([size[, keepends]]) 781 If *keepends* is false line-endings will be stripped from the lines 785 .. method:: readlines([sizehint[, keepends]]) 791 are included in the list entries if *keepends* is true.
|
/third_party/python/Lib/lib2to3/ |
D | refactor.py | 554 for line in input.splitlines(keepends=True): 598 new = str(tree).splitlines(keepends=True)
|
/third_party/python/Include/ |
D | unicodeobject.h | 864 int keepends /* If true, line end markers are included */
|
/third_party/python/Lib/unittest/ |
D | case.py | 1218 firstlines = first.splitlines(keepends=True) 1219 secondlines = second.splitlines(keepends=True)
|
/third_party/python/Lib/collections/ |
D | __init__.py | 1530 def splitlines(self, keepends=False): argument 1531 return self.data.splitlines(keepends)
|
/third_party/python/Objects/ |
D | bytearrayobject.c | 2045 bytearray_splitlines_impl(PyByteArrayObject *self, int keepends) in bytearray_splitlines_impl() argument 2050 PyByteArray_GET_SIZE(self), keepends in bytearray_splitlines_impl()
|
D | bytesobject.c | 2325 bytes_splitlines_impl(PyBytesObject *self, int keepends) in bytes_splitlines_impl() argument 2330 PyBytes_GET_SIZE(self), keepends in bytes_splitlines_impl()
|
D | unicodeobject.c | 10652 PyUnicode_Splitlines(PyObject *string, int keepends) in PyUnicode_Splitlines() argument 10664 PyUnicode_GET_LENGTH(string), keepends); in PyUnicode_Splitlines() 10668 PyUnicode_GET_LENGTH(string), keepends); in PyUnicode_Splitlines() 10673 PyUnicode_GET_LENGTH(string), keepends); in PyUnicode_Splitlines() 10678 PyUnicode_GET_LENGTH(string), keepends); in PyUnicode_Splitlines() 13696 unicode_splitlines_impl(PyObject *self, int keepends) in unicode_splitlines_impl() argument 13699 return PyUnicode_Splitlines(self, keepends); in unicode_splitlines_impl()
|
/third_party/skia/third_party/externals/brotli/research/ |
D | brotlidump.py | 1331 for line in self.actionTable.splitlines(keepends=False):
|