An analog to Scala's RichString
class, providing some methods
that neither RichString
nor String
provide.
An analog to Scala's RichString
class, providing some methods
that neither RichString
nor String
provide. By
importing the implicit conversion functions, you can use the methods in
this class transparently from a String
or RichString
object.
These examples assume you've included this import:
import grizzled.string.Implicits.String._
These are just a few of the enrichments available. See below for the entire set.
val s = "a b c" println(s.tokenize) // prints: List(a, b, c)
" abc def ".rtrim // yields " abc def"
"© 2016 The Example Company" // yields "© 2016 The Example Company™
String enrichment classes.