final class RichString extends AnyVal
- Source
- RichString.scala
- Alphabetic
- By Inheritance
- RichString
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RichString(s: 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 capitalizeFully(delimiters: Char*): String
See org.apache.commons.lang3.text.WordUtils.capitalizeFully
- def capitalizeFully: String
See org.apache.commons.lang3.text.WordUtils.capitalizeFully
- def capitalizeWords(delimiters: Char*): String
See org.apache.commons.lang3.text.WordUtils.capitalize
- def capitalizeWords: String
See org.apache.commons.lang3.text.WordUtils.capitalize
- def endsWithIgnoreCase(other: String): Boolean
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- 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)
- def isBigDecimal: Boolean
- def isBoolean: Boolean
- def isByte: Boolean
- def isDouble: Boolean
- def isFloat: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isInt: Boolean
- def isLong: Boolean
- def isNotBigDecimal: Boolean
- def isShort: Boolean
- def lPad(length: Int, c: Char = ' '): String
- def lowerAlphaNumeric: String
See fm.common.Normalize.lowerAlphaNumeric
- def lowerAlphaNumericWords: Array[String]
See fm.common.Normalize.lowerAlphaNumericWords
- def pad(length: Int, c: Char = ' '): String
- def parseBigDecimal(implicit locale: Locale): Option[BigDecimal]
- def parseBoolean: Option[Boolean]
Unlike toBoolean/toBooleanOption/isBoolean this method will attempt to parse a boolean value from a string.
- def rPad(length: Int, c: Char = ' '): String
- def replaceAll(regex: Regex, replacement: String): String
- def replaceFirst(regex: Regex, replacement: String): String
- 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?
- 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?
- val s: String
- def startsWithIgnoreCase(other: String): Boolean
- def stripAccents: String
- 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
- 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
- def toBigDecimal: BigDecimal
- def toBigDecimalOption: Option[BigDecimal]
- def toBigInteger: BigInteger
- def toBigIntegerOption: Option[BigInteger]
- def toBlankOption: Option[String]
If the string is blank returns None else Some(string)
- def toBooleanOptionCached: Option[Boolean]
- def toByteOptionCached: Option[Byte]
- def toCodePointArray: Array[Int]
- def toDoubleOptionCached: Option[Double]
- def toFile: File
A shortcut for "new java.io.File(s)"
- def toFloatOptionCached: Option[Float]
- def toIntOptionCached: Option[Int]
- def toLongOptionCached: Option[Long]
- def toShortOptionCached: Option[Short]
- def toString(): String
- Definition Classes
- Any
- 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)
- def urlName: String
See fm.common.Normalize.name