PyUnicode_Splitlines

Ditto PyUnicode_Split, but split at line breaks.

CRLF is considered to be one line break. Line breaks are not included in the resulting list.

  1. PyObject* PyUnicode_Splitlines(PyObject* s, int keepends)
  2. alias PyUnicode_Splitlines = PyUnicodeUCS2_Splitlines
  3. alias PyUnicode_Splitlines = PyUnicodeUCS4_Splitlines
    version(!Python_3_3_Or_Later && !Python_Unicode_UCS2)
    extern (C)
    alias PyUnicode_Splitlines = PyUnicodeUCS4_Splitlines

Meta