final class StringOps extends AnyVal
- Source
- StringOps.scala
- Alphabetic
- By Inheritance
- StringOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StringOps(self: String)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def charsNel(e: => NonEmptyList[Char]): NonEmptyList[Char]
Constructs a non-empty list with the given string if it is not empty, otherwise, returns the second argument.
- def charsNel: Maybe[NonEmptyList[Char]]
Constructs a non-empty list with the value if it is not empty, otherwise, throws an error.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def parseBigDecimal: Validation[String, BigDecimal]
- def parseBigInt: Validation[String, BigInteger]
- def parseBoolean: Validation[String, Boolean]
- def parseByte: Validation[String, Byte]
- def parseDouble: Validation[String, Double]
- def parseFloat: Validation[String, Float]
- def parseInt: Validation[String, Int]
- def parseLong: Validation[String, Long]
- def parseShort: Validation[String, Short]
- def plural(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.
- def toString(): String
- Definition Classes
- Any