Packages

c

cc.drx

DrxString

final class DrxString extends AnyVal

Source
string.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DrxString
  2. AnyVal
  3. Any
Implicitly
  1. by richDrxAny
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DrxString(string: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from DrxString toany2stringadd[DrxString] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def +++(xs: Iterable[String]): String
  5. def +++(opt: Option[String]): String

    alias for flatConcat is needed so left to right operator precidence works when named opperators are higher than operators

  6. def ->[B](y: B): (DrxString, B)
    Implicit
    This member is added by an implicit conversion from DrxString toArrowAssoc[DrxString] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  8. def ansi(c: Color): String
  9. def applyIf(t: Boolean, f: (DrxString) => DrxString): DrxString
    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  10. def applyIf(t: (DrxString) => Boolean)(f: (DrxString) => DrxString): DrxString

    better chaining for types

    better chaining for types

    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def base(charset: IndexedSeq[Char]): Long
  13. def base(radix: Int): Long
  14. def camelCase: String
  15. def containsSound(str: String)(implicit p: Phonetic): Boolean
  16. def containsSubsequence(x: String): Boolean
  17. def decapitalize: String
  18. def doesNotContain(x: String): Boolean
  19. def doesNotEndWith(x: String): Boolean
  20. def doesNotStartWith(x: String): Boolean
  21. def dos2unix: String
  22. def dropRightWhile(p: (Char) => Boolean): String
  23. def elementOf(xs: Set[DrxString]): Boolean
    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  24. def ensuring(cond: (DrxString) => Boolean, msg: => Any): DrxString
    Implicit
    This member is added by an implicit conversion from DrxString toEnsuring[DrxString] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. def ensuring(cond: (DrxString) => Boolean): DrxString
    Implicit
    This member is added by an implicit conversion from DrxString toEnsuring[DrxString] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. def ensuring(cond: Boolean, msg: => Any): DrxString
    Implicit
    This member is added by an implicit conversion from DrxString toEnsuring[DrxString] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: Boolean): DrxString
    Implicit
    This member is added by an implicit conversion from DrxString toEnsuring[DrxString] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. def escapeXML: String
  29. def fit(n: Int, align: AlignHorizontal = Left, padChar: String = " "): String
  30. def flatConcat(xs: Option[String]): String
  31. def flatConcat(xs: Iterable[String]): String

    fix "bug" of intent for string concat with a +++ for flatConcat or ++ for a concat of seq of chars

  32. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from DrxString toStringFormat[DrxString] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  33. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  34. def href(path: String): String
  35. def indent(margin: String): String
  36. def indent: String
  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. def lcp(that: String): String
  39. def levenshtein(that: String): Int
  40. def longestCommonSuffix(that: String): String
  41. def noneIf(f: (DrxString) => Boolean): Option[DrxString]
    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  42. def opposite(implicit p: Opposite[String, String]): Option[String]
  43. def optionIf(f: (DrxString) => Boolean): Option[DrxString]

    optionally wrap an object

    optionally wrap an object

    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  44. def overlay(that: String): String
  45. def pluck[A](p: Pluck[String, A]): Option[A]

    easy way to grab all matches of a string, an alternative name would be pluckAllFirstMatchGroup

  46. def pluckAll[A](p: Pluck[String, A]): Iterator[A]
  47. def preApply[B](f: (DrxString) => B): B

    a preApply f => f(a)

    a preApply f => f(a)

    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  48. def println(): Unit
  49. def quote: String
  50. def removeVowels: String
  51. def replaceAllWith(regex: drx.Regex)(replacer: (String) => String): String
  52. def replaceAllWith(regex: drx.Regex, replacement: String = ""): String
  53. def replaceIf(cond: (String) => Boolean, replacement: => String): String
  54. def sideEffect(f: (DrxString) => Unit): DrxString

    side effect filter

    side effect filter

    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  55. def singularize(str: String): String
  56. def someIf(f: (DrxString) => Boolean): Option[DrxString]
    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  57. def soundsLike(str: String)(implicit p: Phonetic): Boolean
  58. def splitTerms: Array[String]
  59. val string: String
  60. def strip(strings: Iterable[String]): String
  61. def strip(regex: drx.Regex): String
  62. def tag(tag: String, attrs: (String, String)*): String
  63. def tag(c: Color): String
  64. def takeRightWhile(p: (Char) => Boolean): String
  65. val thisAny: DrxString
    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  66. def toByteBuffer: ByteBuffer

    assuming utf8 now that this is nearly standard

  67. def toBytes: Array[Byte]

    assuming utf8 now that this is nearly standard

  68. def toOption: Option[String]
  69. def toString(): String
    Definition Classes
    Any
  70. def truncate(len: Int = 70, postfix: String = "..."): String
  71. def unQuote: String
  72. def unWrap(pre: String, post: String): String
  73. def undent: String
  74. def undent(margin: String): String
  75. def underscore: String

    replace spaces with underscores

  76. def unpad: String

    a better trim, the java.lang.String strips out to much (including ansicodes)

  77. def unpadHead: String
  78. def wordMap[B](f: (String) => B): Map[String, B]
  79. def words: IndexedSeq[String]
  80. def wrap(pre: String, post: String): String
  81. def wrap(pre: String): String

Deprecated Value Members

  1. def ?>(f: (DrxString) => Boolean): Option[DrxString]

    alias for option if

    alias for option if

    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) to many symbols are hard to undertand

  2. def findAllMatches(regex: drx.Regex): Iterator[Match]

    an left to right version of regex findAllMatchIn string

    an left to right version of regex findAllMatchIn string

    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.13) use the Pluck typeclass instead which better encodes the Regex -> Match -> Extrator -> Type pattern in a typesafe inference way

  3. def pluck(regex: drx.Regex): Option[String]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.13) use pluck(Pluck(regex)) istead

  4. def pluckAll(regex: drx.Regex): Iterator[String]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.13) use pluckAll(Pluck(regex)) istead

  5. def stripAnsi: String
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use Ansi.strip

  6. def |>[B](f: (DrxString) => B): B
    Implicit
    This member is added by an implicit conversion from DrxString toDrxAny[DrxString] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use preApply if you must (symbols are concise without concision)

  7. def [B](y: B): (DrxString, B)
    Implicit
    This member is added by an implicit conversion from DrxString toArrowAssoc[DrxString] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion richDrxAny fromDrxString to DrxAny[DrxString]

Inherited by implicit conversion any2stringadd fromDrxString to any2stringadd[DrxString]

Inherited by implicit conversion StringFormat fromDrxString to StringFormat[DrxString]

Inherited by implicit conversion Ensuring fromDrxString to Ensuring[DrxString]

Inherited by implicit conversion ArrowAssoc fromDrxString to ArrowAssoc[DrxString]

Ungrouped