org.cvogt.scala

StringExtensions

implicit final class StringExtensions extends AnyVal

Source
package.scala
Linear Supertypes
AnyVal, NotNull, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StringExtensions
  2. AnyVal
  3. NotNull
  4. Any
Implicitly
  1. by AnyExtensions
  2. by any2stringadd
  3. by any2stringfmt
  4. by any2ArrowAssoc
  5. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StringExtensions(s: 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 information
    This member is added by an implicit conversion from StringExtensions to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  4. def ->[B](y: B): (StringExtensions, B)

    Implicit information
    This member is added by an implicit conversion from StringExtensions to ArrowAssoc[StringExtensions] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def commonLinePrefix: String

    find the largest common prefix among all lines of the given string

  8. def containsTyped(s2: String): Boolean

    type-safe substring check

  9. def ensuring(cond: (StringExtensions) ⇒ Boolean, msg: ⇒ Any): StringExtensions

    Implicit information
    This member is added by an implicit conversion from StringExtensions to Ensuring[StringExtensions] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (StringExtensions) ⇒ Boolean): StringExtensions

    Implicit information
    This member is added by an implicit conversion from StringExtensions to Ensuring[StringExtensions] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): StringExtensions

    Implicit information
    This member is added by an implicit conversion from StringExtensions to Ensuring[StringExtensions] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): StringExtensions

    Implicit information
    This member is added by an implicit conversion from StringExtensions to Ensuring[StringExtensions] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from StringExtensions to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  14. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  15. def in(set: Set[StringExtensions]): Boolean

    Tests whether the given set contains this value as an element

    Tests whether the given set contains this value as an element

    Implicit information
    This member is added by an implicit conversion from StringExtensions to AnyExtensions[StringExtensions] performed by method AnyExtensions in org.cvogt.scala.
    Definition Classes
    AnyExtensions
  16. def in(seq: Seq[StringExtensions]): Boolean

    Tests whether the given sequence contains this value as an element

    Tests whether the given sequence contains this value as an element

    Implicit information
    This member is added by an implicit conversion from StringExtensions to AnyExtensions[StringExtensions] performed by method AnyExtensions in org.cvogt.scala.
    Definition Classes
    AnyExtensions
  17. def indent: String

    indents every line by two spaces

  18. def indent(width: Int): String

    indents every line by twice the given number of spaces

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def notIn(set: Set[StringExtensions]): Boolean

    Tests whether the given set does NOT contains this value as an element

    Tests whether the given set does NOT contains this value as an element

    Implicit information
    This member is added by an implicit conversion from StringExtensions to AnyExtensions[StringExtensions] performed by method AnyExtensions in org.cvogt.scala.
    Definition Classes
    AnyExtensions
  21. def notIn(seq: Seq[StringExtensions]): Boolean

    Tests whether the given sequence does NOT contains this value as an element

    Tests whether the given sequence does NOT contains this value as an element

    Implicit information
    This member is added by an implicit conversion from StringExtensions to AnyExtensions[StringExtensions] performed by method AnyExtensions in org.cvogt.scala.
    Definition Classes
    AnyExtensions
  22. def prefixLines(prefix: String): String

    prefixes every line with the given prefix

  23. val s: String

  24. def stripIndent: String

    finds a common whitespace prefix of all lines that contain non-whitespace characters and removes it's number of characters from all lines.

    finds a common whitespace prefix of all lines that contain non-whitespace characters and removes it's number of characters from all lines. (Also converts line endings to system default line endings).

  25. def toString(): String

    Definition Classes
    Any
  26. def trimLeft: String

    trim whitespace from the left of the string

  27. def trimLinesLeft: String

    trim whitespace from the left of each line of the string

  28. def trimLinesRight: String

    trim whitespace from the right of each line of the string

  29. def trimRight: String

    trim whitespace from the right of the string

  30. val value: StringExtensions

    Implicit information
    This member is added by an implicit conversion from StringExtensions to AnyExtensions[StringExtensions] performed by method AnyExtensions in org.cvogt.scala.
    Definition Classes
    AnyExtensions
  31. def [B](y: B): (StringExtensions, B)

    Implicit information
    This member is added by an implicit conversion from StringExtensions to ArrowAssoc[StringExtensions] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from StringExtensions to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (stringExtensions: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from StringExtensions to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (stringExtensions: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: StringExtensions

    Implicit information
    This member is added by an implicit conversion from StringExtensions to ArrowAssoc[StringExtensions] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (stringExtensions: ArrowAssoc[StringExtensions]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: StringExtensions

    Implicit information
    This member is added by an implicit conversion from StringExtensions to Ensuring[StringExtensions] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (stringExtensions: Ensuring[StringExtensions]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Inherited by implicit conversion AnyExtensions from StringExtensions to AnyExtensions[StringExtensions]

Inherited by implicit conversion any2stringadd from StringExtensions to StringAdd

Inherited by implicit conversion any2stringfmt from StringExtensions to StringFormat

Inherited by implicit conversion any2ArrowAssoc from StringExtensions to ArrowAssoc[StringExtensions]

Inherited by implicit conversion any2Ensuring from StringExtensions to Ensuring[StringExtensions]

Ungrouped