Searched refs:keepends (Results 1 – 13 of 13) sorted by relevance
/external/python/cpython2/Lib/ |
D | codecs.py | 518 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)
|
D | UserString.py | 122 def splitlines(self, keepends=0): return self.data.splitlines(keepends) argument
|
/external/python/cpython2/Lib/test/ |
D | test_codecs.py | 82 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/ |
D | split.h | 341 int keepends) in stringlib_splitlines() argument 373 if (keepends) in stringlib_splitlines()
|
/external/python/cpython2/Doc/library/ |
D | codecs.rst | 678 .. 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.
|
D | stdtypes.rst | 1213 .. 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/ |
D | unicodeobject.h | 1174 int keepends /* If true, line end markers are included */
|
/external/python/cpython2/Objects/ |
D | bytearrayobject.c | 2678 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()
|
D | unicodeobject.c | 5827 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()
|
D | stringobject.c | 3563 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/ |
D | brotlidump.py | 1331 for line in self.actionTable.splitlines(keepends=False):
|
/external/python/cpython2/Misc/ |
D | cheatsheet | 501 keepends]) boundaries. 538 (11) Line breaks are not included in the resulting list unless keepends is
|
D | HISTORY | 2395 ``codecs.StreamReader.readlines()`` have a new argument ``keepends``. 2396 Trailing "\n"s will be stripped from the lines if ``keepends`` is false.
|