Class

com.twitter.conversions.string

RichString

Related Doc: package string

Permalink

final class RichString extends AnyRef

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichString
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichString(wrapped: String)

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def quoteC(): String

    Permalink

    Quote a string so that unprintable chars (in ASCII) are represented by C-style backslash expressions.

    Quote a string so that unprintable chars (in ASCII) are represented by C-style backslash expressions. For example, a raw linefeed will be translated into "\n". Control codes (anything below 0x20) and unprintables (anything above 0x7E) are turned into either "\xHH" or "\\uHHHH" expressions, depending on their range. Embedded backslashes and double-quotes are also quoted.

    returns

    a quoted string, suitable for ASCII display

  16. def regexSub(re: Regex)(replace: (MatchData) ⇒ String): String

    Permalink

    For every section of a string that matches a regular expression, call a function to determine a replacement (as in python's re.sub).

    For every section of a string that matches a regular expression, call a function to determine a replacement (as in python's re.sub). The function will be passed the Matcher object corresponding to the substring that matches the pattern, and that substring will be replaced by the function's result.

    For example, this call:

    "ohio".regexSub("""h.""".r) { m => "n" }

    will return the string "ono".

    The matches are found using Matcher.find() and so will obey all the normal java rules (the matches will not overlap, etc).

    re

    the regex pattern to replace

    replace

    a function that takes Regex.MatchData objects and returns a string to substitute

    returns

    the resulting string with replacements made

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. def unhexlify(): Array[Byte]

    Permalink

    Turn a string of hex digits into a byte array.

    Turn a string of hex digits into a byte array. This does the exact opposite of Array[Byte]#hexlify.

  20. def unquoteC(): String

    Permalink

    Unquote an ASCII string that has been quoted in a style like quoteC() and convert it into a standard unicode string.

    Unquote an ASCII string that has been quoted in a style like quoteC() and convert it into a standard unicode string. "\\uHHHH" and "\xHH" expressions are unpacked into unicode characters, as well as "\r", "\n", "\t", "\\", and '\"'.

    returns

    an unquoted unicode string

  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped