Home
last modified time | relevance | path

Searched refs:keepends (Results 1 – 25 of 31) sorted by relevance

12

/third_party/python/Lib/
Dcodecs.py509 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 …]
Dstring.py94 lines = self.template[:i].splitlines(keepends=True)
Ddoctest.py1431 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/
Dbytesobject.c.h684 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()
Dbytearrayobject.c.h924 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()
Dunicodeobject.c.h1030 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/
Dtest_codecs.py157 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 …]
Dtest_gzip.py224 self.assertEqual(lines, 50 * data1.splitlines(keepends=True))
468 lines = (data1 * 50).decode("ascii").splitlines(keepends=True)
Dstring_tests.py1033 'splitlines', keepends=False)
1035 "\nabc\ndef\r\nghi\n\r", 'splitlines', keepends=True)
Dtest_calendar.py375 for line in s.splitlines(keepends=False):
Dtest_nntplib.py1231 return iter(b.splitlines(keepends=True))
1236 return iter(b.splitlines(keepends=False))
/third_party/python/Doc/includes/
Demail-read-alternative.py30 print(''.join(simplest.get_content().splitlines(keepends=True)[:3]))
/third_party/markupsafe/
D__init__.py139 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/
Dsplit.h338 int keepends) in STRINGLIB()
370 if (keepends) in STRINGLIB()
/third_party/python/Lib/test/test_email/
D__init__.py62 return [repr(x) for x in b.splitlines(keepends=True)]
/third_party/python/Doc/library/
Ddifflib.rst245 >>> 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)
Dcodecs.rst774 .. 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/
Drefactor.py554 for line in input.splitlines(keepends=True):
598 new = str(tree).splitlines(keepends=True)
/third_party/python/Include/
Dunicodeobject.h864 int keepends /* If true, line end markers are included */
/third_party/python/Lib/unittest/
Dcase.py1218 firstlines = first.splitlines(keepends=True)
1219 secondlines = second.splitlines(keepends=True)
/third_party/python/Lib/collections/
D__init__.py1530 def splitlines(self, keepends=False): argument
1531 return self.data.splitlines(keepends)
/third_party/python/Objects/
Dbytearrayobject.c2045 bytearray_splitlines_impl(PyByteArrayObject *self, int keepends) in bytearray_splitlines_impl() argument
2050 PyByteArray_GET_SIZE(self), keepends in bytearray_splitlines_impl()
Dbytesobject.c2325 bytes_splitlines_impl(PyBytesObject *self, int keepends) in bytes_splitlines_impl() argument
2330 PyBytes_GET_SIZE(self), keepends in bytes_splitlines_impl()
Dunicodeobject.c10652 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/
Dbrotlidump.py1331 for line in self.actionTable.splitlines(keepends=False):

12