CsvParser

ceesvee.CsvParser
object CsvParser

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CsvParser.type

Members list

Type members

Classlikes

object Error

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Error.type
sealed trait Error

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class LineTooLong
object Options

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Options.type
trait Options

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Impl
trait Options
class Impl
case class State(leftover: String, insideQuote: Boolean)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object State

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
State.type

Value members

Concrete methods

def ignoreLine(line: String, options: Options): Boolean
def parse[C[_]](in: Iterator[String], options: Options)(implicit f: Factory[String, C[String]]): Iterator[C[String]]

Parses the given strings into CSV fields.

Parses the given strings into CSV fields.

The given strings must contain new lines as this method splits on them.

Blank lines and lines starting with '#' are ignored.

Attributes

def parseLine[C[_]](line: String, options: Options)(implicit f: Factory[String, C[String]]): C[String]

Parse a line into a collection of CSV fields.

Parse a line into a collection of CSV fields.

Attributes

def splitLines(in: Iterator[String], options: Options): Iterator[String]

Splits the given strings into CSV lines by splitting on either '\r\n' and '\n'.

Splits the given strings into CSV lines by splitting on either '\r\n' and '\n'.

Both '"' and '' are valid escapes for nested double quotes.

Attributes

def splitStrings[C <: (Iterable)](strings: C[String], state: State)(implicit f: Factory[String, C[String]]): (State, C[String])