CsvRendererString

com.phasmidsoftware.tableparser.core.render.CsvRenderers.CsvRendererString
object CsvRendererString extends StandardCsvRenderer[String]

Attributes

Graph
Supertypes
class StandardCsvRenderer[String]
trait CsvRenderer[String]
trait Renderer[String, String]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

override def render(w: String, attrs: Map[String, String]): String

Method to render a String as a CSV cell, quoting it (as in RFC 4180) when it has to be quoted to be read back as it is: when it contains the delimiter, the quote character or a line break, or when it starts or ends with whitespace (which would otherwise be taken as part of the delimiter). Any quote characters inside it are doubled.

Method to render a String as a CSV cell, quoting it (as in RFC 4180) when it has to be quoted to be read back as it is: when it contains the delimiter, the quote character or a line break, or when it starts or ends with whitespace (which would otherwise be taken as part of the delimiter). Any quote characters inside it are doubled.

Value parameters

attrs

(unused) attributes.

w

the String.

Attributes

Returns

the String, quoted if necessary.

Definition Classes

Inherited methods

def render(t: String): String

Render an instance of T as an O, qualifying the rendering with no attributes.

Render an instance of T as an O, qualifying the rendering with no attributes.

Value parameters

t

a T to be rendered.

Attributes

Returns

an instance of type O.

Inherited from:
Renderer

Inherited fields

Attributes

Inherited from:
StandardCsvRenderer