Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/
Dcodecs.py518 def readline(self, size=None, keepends=True): argument
537 if not keepends:
569 if not keepends:
577 if keepends:
584 if line and not keepends:
591 def readlines(self, sizehint=None, keepends=True): argument
604 return data.splitlines(keepends)
DUserString.py122 def splitlines(self, keepends=0): return self.data.splitlines(keepends) argument
/external/python/cpython2/Lib/test/
Dtest_codecs.py82 def readalllines(input, keepends=True, size=None): argument
86 line = reader.readline(size=size, keepends=keepends)
118 reader.readline(keepends=True),
122 reader.readline(keepends=True),
128 reader.readline(keepends=False),
132 reader.readline(keepends=False),
246 self.assertEqual(reader.readline(keepends=False), u"foo")
248 self.assertEqual(reader.readline(keepends=False), u"")
249 self.assertEqual(reader.readline(keepends=False), u"bar")
251 self.assertEqual(reader.readline(keepends=False), u"baz")
[all …]
/external/python/cpython2/Objects/stringlib/
Dsplit.h341 int keepends) in stringlib_splitlines() argument
373 if (keepends) in stringlib_splitlines()
/external/python/cpython2/Doc/library/
Dcodecs.rst678 .. method:: readline([size[, keepends]])
685 If *keepends* is false line-endings will be stripped from the lines
689 *keepends* argument added.
692 .. method:: readlines([sizehint[, keepends]])
698 included in the list entries if *keepends* is true.
Dstdtypes.rst1213 .. method:: str.splitlines([keepends])
1217 Line breaks are not included in the resulting list unless *keepends* is
1246 .. method:: unicode.splitlines([keepends])
/external/python/cpython2/Include/
Dunicodeobject.h1174 int keepends /* If true, line end markers are included */
/external/python/cpython2/Objects/
Dbytearrayobject.c2678 int keepends = 0; in bytearray_splitlines() local
2680 if (!PyArg_ParseTuple(args, "|i:splitlines", &keepends)) in bytearray_splitlines()
2685 PyByteArray_GET_SIZE(self), keepends in bytearray_splitlines()
Dunicodeobject.c5827 PyObject *PyUnicode_Splitlines(PyObject *string, int keepends) in PyUnicode_Splitlines() argument
5837 PyUnicode_GET_SIZE(string), keepends); in PyUnicode_Splitlines()
7646 int keepends = 0; in unicode_splitlines() local
7648 if (!PyArg_ParseTuple(args, "|i:splitlines", &keepends)) in unicode_splitlines()
7651 return PyUnicode_Splitlines((PyObject *)self, keepends); in unicode_splitlines()
Dstringobject.c3563 int keepends = 0; in string_splitlines() local
3565 if (!PyArg_ParseTuple(args, "|i:splitlines", &keepends)) in string_splitlines()
3570 keepends in string_splitlines()
/external/brotli/research/
Dbrotlidump.py1331 for line in self.actionTable.splitlines(keepends=False):
/external/python/cpython2/Misc/
Dcheatsheet501 keepends]) boundaries.
538 (11) Line breaks are not included in the resulting list unless keepends is
DHISTORY2395 ``codecs.StreamReader.readlines()`` have a new argument ``keepends``.
2396 Trailing "\n"s will be stripped from the lines if ``keepends`` is false.