JoinableString

com.phasmidsoftware.tableparser.core.util.Joinable.JoinableString
object JoinableString extends Joinable[String]

Provides an implicit implementation of the Joinable type class for the String type. This enables strings to be combined using the join method, defines a zero value for strings, and validates non-empty strings.

Attributes

Graph
Supertypes
trait Joinable[String]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def incomplete(t: String): Boolean

A line is incomplete if it has an odd number of quote characters ("), i.e., it ends inside a quoted field. (A quote inside a quoted field is doubled, so it doesn't change whether the number is odd.)

A line is incomplete if it has an odd number of quote characters ("), i.e., it ends inside a quoted field. (A quote inside a quoted field is doubled, so it doesn't change whether the number is odd.)

Attributes

Definition Classes
def join(t1: String, t2: String): String

Method to join two lines of input, which are parts of the same record, keeping the line break between them (which belongs to the value of a quoted field, as in RFC 4180).

Method to join two lines of input, which are parts of the same record, keeping the line break between them (which belongs to the value of a quoted field, as in RFC 4180).

Attributes

def valid(t: String): Boolean

Validates whether the given string is non-empty.

Validates whether the given string is non-empty.

Value parameters

t

The string to validate.

Attributes

Returns

true if the string is non-empty, false otherwise.

Concrete fields

val zero: String

Represents the zero (identity) value for the String type in the context of the Joinable type class. In this case, the zero value is an empty string (""), which acts as the neutral element in string concatenation operations.

Represents the zero (identity) value for the String type in the context of the Joinable type class. In this case, the zero value is an empty string (""), which acts as the neutral element in string concatenation operations.

Attributes