ParseableChar

com.phasmidsoftware.tableparser.core.parse.Parseable.ParseableChar
See theParseableChar companion object
trait ParseableChar extends Parseable[Char]

Parser of Char.

Attributes

Companion
object
Graph
Supertypes
trait Parseable[Char]
class Object
trait Matchable
class Any
Known subtypes
object ParseableChar

Members list

Value members

Concrete methods

def parse(s: String, optModifier: Option[String]): Try[Char]

Parses the given string s to extract the first character, optionally modified by optModifier. If parsing fails, a descriptive error message is returned in the failure.

Parses the given string s to extract the first character, optionally modified by optModifier. If parsing fails, a descriptive error message is returned in the failure.

Value parameters

optModifier

an optional modifier string that may influence the parsing. Currently unused.

s

the input string to be parsed. It must not be empty if the parsing is to succeed.

Attributes

Returns

a Try[Char] that contains a Char if parsing is successful, or a failure describing the error.