object string extends StringInstances with StringFunctions
- Source
- String.scala
- Alphabetic
- By Inheritance
- string
- StringFunctions
- StringInstances
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- implicit object stringInstance extends Monoid[String] with Show[String] with Equal[String] with Order[String] with IsEmpty[[α]String]
- Definition Classes
- StringInstances
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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.
- Definition Classes
- StringFunctions
- def charsNel(s: String): Option[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.
- Definition Classes
- StringFunctions
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parseBigDecimal(s: String): Validation[NumberFormatException, BigDecimal]
- def parseBigInt(s: String): Validation[NumberFormatException, BigInt]
- def parseBoolean(s: String): Validation[IllegalArgumentException, Boolean]
- Definition Classes
- StringFunctions
- def parseByte(s: String): Validation[NumberFormatException, Byte]
- Definition Classes
- StringFunctions
- def parseDouble(s: String): Validation[NumberFormatException, Double]
- Definition Classes
- StringFunctions
- def parseFloat(s: String): Validation[NumberFormatException, Float]
- Definition Classes
- StringFunctions
- def parseInt(s: String): Validation[NumberFormatException, Int]
- Definition Classes
- StringFunctions
- def parseLong(s: String): Validation[NumberFormatException, Long]
- Definition Classes
- StringFunctions
- def parseShort(s: String): Validation[NumberFormatException, Short]
- Definition Classes
- 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.
- Definition Classes
- StringFunctions
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object stringSyntax extends ToStringOps
Deprecated Value Members
- def charsNelErr(s: String, message: => String): NonEmptyList[Char]
- Definition Classes
- StringFunctions
- Annotations
- @deprecated
- Deprecated
(Since version 7.2) Unsafe. Use
charsNel
instead
- def unsafeCharsNel(s: String): NonEmptyList[Char]
- Definition Classes
- StringFunctions
- Annotations
- @deprecated
- Deprecated
(Since version 7.2) Unsafe. Use
charsNel
instead