]> gitweb.factorcode.org Git - factor.git/commit
splitting: implement universal linebreaks by splitting on:
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 19 Sep 2023 04:38:05 +0000 (21:38 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 19 Sep 2023 04:38:05 +0000 (21:38 -0700)
commita525b01f25e2583cf818772095824d8ba3ff3cc7
tree145311453a8ee853e41d6da0f6db778bdb5d5fc7
parentfefdfe7e519fe9eb3fc18a77b119020523819af0
splitting: implement universal linebreaks by splitting on:

    \n       LINE FEED
    \r       CARRIAGE RETURN
    \v       LINE TABULATION
    \f       FORM FEED
    \x1c     FILE SEPARATOR
    \x1d     GROUP SEPARATOR
    \x1e     RECORD SEPARATOR
    \x85     NEXT LINE (C1 CONTROL CODE)
    \u002028 LINE SEPARATOR
    \u002029 PARAGRAPH SEPARATOR
core/splitting/splitting-tests.factor
core/splitting/splitting.factor