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: Option[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[NumberFormatException, BigDecimal]
- def parseBigInt: Validation[NumberFormatException, BigInt]
- def parseBoolean: Validation[IllegalArgumentException, Boolean]
- def parseByte: Validation[NumberFormatException, Byte]
- def parseDouble: Validation[NumberFormatException, Double]
- def parseFloat: Validation[NumberFormatException, Float]
- def parseInt: Validation[NumberFormatException, Int]
- def parseLong: Validation[NumberFormatException, Long]
- def parseShort: Validation[NumberFormatException, 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.
- val self: String
- def toString(): String
- Definition Classes
- Any
Deprecated Value Members
- def charsNelErr(message: => String): NonEmptyList[Char]
- Annotations
- @deprecated
- Deprecated
(Since version 7.2) Unsafe. Use
charsNel
instead
- def unsafeCharsNel: NonEmptyList[Char]
- Annotations
- @deprecated
- Deprecated
(Since version 7.2) Unsafe. Use
charsNel
instead