Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8225031

Consider other whitespace characters as line terminators for String.lines

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 13
    • core-libs
    • None

      The String.lines method (JDK-8200380) is well-documented in its handling of combinations of carriage return and line feed in delimiting lines of a string.

      There are potentially other Unicode whitespace characters which should be regarded as having a similar effect including:

      * U+0085 next line
      * U+2028 line separator
      * U+2029 paragraph separator

      The ASCII form feed and vertical tab would be other candidates.

            Unassigned Unassigned
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: