final class RichString extends AnyVal

Source
RichString.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichString
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RichString(s: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def capitalizeFully(delimiters: Char*): String

    See org.apache.commons.lang3.text.WordUtils.capitalizeFully

  6. def capitalizeFully: String

    See org.apache.commons.lang3.text.WordUtils.capitalizeFully

  7. def capitalizeWords(delimiters: Char*): String

    See org.apache.commons.lang3.text.WordUtils.capitalize

  8. def capitalizeWords: String

    See org.apache.commons.lang3.text.WordUtils.capitalize

  9. def endsWithIgnoreCase(other: String): Boolean
  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. def internOrNull: String

    Same as String.intern but safe for use when the string is null (i.e.

    Same as String.intern but safe for use when the string is null (i.e. it just returns null)

  12. def isBigDecimal: Boolean
  13. def isBoolean: Boolean
  14. def isByte: Boolean
  15. def isDouble: Boolean
  16. def isFloat: Boolean
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isInt: Boolean
  19. def isLong: Boolean
  20. def isNotBigDecimal: Boolean
  21. def isShort: Boolean
  22. def lPad(length: Int, c: Char = ' '): String
  23. def lowerAlphaNumeric: String

    See fm.common.Normalize.lowerAlphaNumeric

  24. def lowerAlphaNumericWords: Array[String]

    See fm.common.Normalize.lowerAlphaNumericWords

  25. def pad(length: Int, c: Char = ' '): String
  26. def parseBigDecimal(implicit locale: Locale): Option[BigDecimal]
  27. def parseBoolean: Option[Boolean]

    Unlike toBoolean/toBooleanOption/isBoolean this method will attempt to parse a boolean value from a string.

  28. def rPad(length: Int, c: Char = ' '): String
  29. def replaceAll(regex: Regex, replacement: String): String
  30. def replaceFirst(regex: Regex, replacement: String): String
  31. def requireLeading(lead: String): String

    If this string does not start with the lead param then return a new string with it added to the start of the string

    If this string does not start with the lead param then return a new string with it added to the start of the string

    TODO: is there a better name for this?

  32. def requireTrailing(trail: String): String

    If this string does not ends with the trail param then return a new string with it added to the end of the string

    If this string does not ends with the trail param then return a new string with it added to the end of the string

    TODO: is there a better name for this?

  33. val s: String
  34. def startsWithIgnoreCase(other: String): Boolean
  35. def stripAccents: String
  36. def stripLeading(lead: String): String

    If this string starts with the lead param then return a new string with lead stripped from the start

    If this string starts with the lead param then return a new string with lead stripped from the start

    NOTE: The same functionality is available in Scala's StringOps.stripPrefix

  37. def stripTrailing(trail: String): String

    If this string ends with the trail param then return a new string with trail stripped from the end

    If this string ends with the trail param then return a new string with trail stripped from the end

    NOTE: The same functionality is available in Scala's StringOps.stripSuffix

  38. def toBigDecimal: BigDecimal
  39. def toBigDecimalOption: Option[BigDecimal]
  40. def toBigInteger: BigInteger
  41. def toBigIntegerOption: Option[BigInteger]
  42. def toBlankOption: Option[String]

    If the string is blank returns None else Some(string)

  43. def toBooleanOptionCached: Option[Boolean]
  44. def toByteOptionCached: Option[Byte]
  45. def toCodePointArray: Array[Int]
  46. def toDoubleOptionCached: Option[Double]
  47. def toFile: File

    A shortcut for "new java.io.File(s)"

  48. def toFloatOptionCached: Option[Float]
  49. def toIntOptionCached: Option[Int]
  50. def toLongOptionCached: Option[Long]
  51. def toShortOptionCached: Option[Short]
  52. def toString(): String
    Definition Classes
    Any
  53. def truncate(length: Int, omission: String = ""): String

    Truncate the string to length if it is currently larger than length.

    Truncate the string to length if it is currently larger than length.

    Note: The resulting string will not be longer than length. (i.e the omission counts towards the length)

    length

    The length to truncate the string to

    omission

    If the string is truncated then add this to the end (Note: The resulting still will be at most length)

  54. def urlName: String

    See fm.common.Normalize.name

Inherited from AnyVal

Inherited from Any

Ungrouped