dacr / split   1.0.1

GitHub

Collection of splitting algorithms

Scala versions: 3.x 2.13 2.12 2.11 2.10

split License Build Status Maven Scaladex Codacy

split library is a collection of various text based splitting algorithms designed for high performances

In your build.sbt, add this :

libraryDependencies += "fr.janalyse" %% "split" % version

For usage example, take a look to unit test cases.

CsvSplit

To split csv lines into cells using the specified separator (, by default). It supports content such as truc, blah, "bouh, bah" which contains 3 cells.

StringSplit

To convert a string into a collection of sub-strings while taking into account brackets, quotes, ...

FlowGroup

To convert a strings flow into a smaller one. For example to process multi-lines logs

KeyValSplit

To extract key values from a string. This is done in a smart way which allow the separator to be used inside values.