string

class Object
trait Matchable
class Any

Type members

Classlikes

object stringSyntax extends ToStringOps

Value members

Inherited methods

def charsNel(s: String, e: => NonEmptyList[Char]): NonEmptyList[Char]

Constructs a non-empty list with the given string if it is not empty, otherwise, returns the second argument.

Constructs a non-empty list with the given string if it is not empty, otherwise, returns the second argument.

Inherited from
StringFunctions
def charsNel(s: String): Maybe[NonEmptyList[Char]]

Constructs a non-empty list with the value if it is not empty, otherwise, throws an error.

Constructs a non-empty list with the value if it is not empty, otherwise, throws an error.

Inherited from
StringFunctions
def parseBigDecimal(s: String): Validation[String, BigDecimal]
Inherited from
StringFunctions
def parseBigInt(s: String): Validation[String, BigInteger]
Inherited from
StringFunctions
def parseBoolean(s: String): Validation[String, Boolean]
Inherited from
StringFunctions
def parseByte(s: String): Validation[String, Byte]
Inherited from
StringFunctions
def parseDouble(s: String): Validation[String, Double]
Inherited from
StringFunctions
def parseFloat(s: String): Validation[String, Float]
Inherited from
StringFunctions
def parseInt(s: String): Validation[String, Int]
Inherited from
StringFunctions
def parseLong(s: String): Validation[String, Long]
Inherited from
StringFunctions
def parseShort(s: String): Validation[String, Short]
Inherited from
StringFunctions
def plural(s: String, n: Long): String

Returns the same String value if the given value is 1 otherwise pluralises this String by appending an "s" unless this String ends with "y" and not one of ["ay", "ey", "iy", "oy", "uy"] in which case the 'y' character is chopped and "ies" is appended.

Returns the same String value if the given value is 1 otherwise pluralises this String by appending an "s" unless this String ends with "y" and not one of ["ay", "ey", "iy", "oy", "uy"] in which case the 'y' character is chopped and "ies" is appended.

Inherited from
StringFunctions

Implicits

Inherited implicits

implicit
val stringInstance: Monoid[String] & Show[String] & Order[String] & IsEmpty[[α] =>> String]
Inherited from
StringInstances