Class

com.avsystem.commons.SharedExtensions

StringOps

Related Doc: package SharedExtensions

Permalink

final class StringOps extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StringOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StringOps(str: String)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def ensurePrefix(prefix: String): String

    Permalink
  6. def ensureSuffix(suffix: String): String

    Permalink
  7. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  9. def orEmpty: String

    Permalink

    Makes sure that String value is not null by replacing null with empty string.

  10. def toString(): String

    Permalink
    Definition Classes
    Any
  11. def uncapitalize: String

    Permalink
  12. def unwrapLines: String

    Permalink

    Removes a newline character from every sequence of consecutive newline characters.

    Removes a newline character from every sequence of consecutive newline characters. If the sequence contained just one newline character without any whitespace before and after it, a space is inserted.

    e.g. My hovercraft\nis full of eels.\n\nMy hovercraft is\n full of eels. becomes My hovercraft is full of eels.\nMy hovercraft is full of eels.

    Useful for multi-line string literals with lines wrapped in source code but without intention of including these line breaks in actual runtime string.

Inherited from AnyVal

Inherited from Any

Ungrouped