Class

ai.lum.common.StringUtils

StringWrapper

Related Doc: package StringUtils

Permalink

implicit final class StringWrapper extends AnyVal

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

Instance Constructors

  1. new StringWrapper(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. def abbreviate(maxWidth: Int): String

    Permalink

    Abbreviates a String using ellipses.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def center(size: Int, padStr: String): String

    Permalink
  7. def center(size: Int, padChar: Char): String

    Permalink
  8. def center(size: Int): String

    Permalink
  9. def distanceTo(str2: String): Int

    Permalink

    Find the edit distance to another String

  10. def escapeCsv: String

    Permalink

    Returns a String value for a CSV column enclosed in double quotes, if required.

  11. def escapeHtml: String

    Permalink

    Escapes the characters in a String using HTML entities.

  12. def escapeJava: String

    Permalink

    Escapes the characters in a String using Java String rules.

  13. def escapeJson: String

    Permalink

    Escapes the characters in a String using Json String rules.

  14. def escapeXml: String

    Permalink

    Escapes the characters in a String using XML entities.

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

    Permalink
    Definition Classes
    AnyVal → Any
  16. def isAlpha: Boolean

    Permalink
  17. def isAlphanumeric: Boolean

    Permalink
  18. def isAsciiPrintable: Boolean

    Permalink
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isNumeric: Boolean

    Permalink
  21. def isWhitespace: Boolean

    Permalink
  22. def leftPad(size: Int, padStr: String): String

    Permalink
  23. def leftPad(size: Int, padChar: Char): String

    Permalink
  24. def leftPad(size: Int): String

    Permalink
  25. def normalizeSpace: String

    Permalink

    Removes leading and trailing whitespace and replaces sequences of whitespace characters by a single space.

  26. def rightPad(size: Int, padStr: String): String

    Permalink
  27. def rightPad(size: Int, padChar: Char): String

    Permalink
  28. def rightPad(size: Int): String

    Permalink
  29. def splitCamelCase: Array[String]

    Permalink
  30. def splitOnWhitespace: Array[String]

    Permalink

    Splits the provided text on whitespace.

  31. val str: String

    Permalink
  32. def stripAccents: String

    Permalink

    Removes diacritics from a string.

  33. def swapCase: String

    Permalink

    Swaps the case of a String changing upper and title case to lower case, and lower case to upper case.

  34. def titleCase: String

    Permalink
  35. def toString(): String

    Permalink
    Definition Classes
    Any
  36. def unescapeCsv: String

    Permalink

    Returns a String value for an unescaped CSV column.

  37. def unescapeHtml: String

    Permalink

    Unescapes a string containing entity escapes to a string containing the actual Unicode characters corresponding to the escapes.

  38. def unescapeJava: String

    Permalink

    Unescapes any Java literals found in the String.

  39. def unescapeJson: String

    Permalink

    Unescapes any Json literals found in the String.

  40. def unescapeXml: String

    Permalink

    Unescapes a string containing XML entity escapes to a string containing the actual Unicode characters corresponding to the escapes.

  41. def wordWrap(wrapLength: Int): String

    Permalink

    Wraps a single line of text, identifying words by ' '.

Inherited from AnyVal

Inherited from Any

Ungrouped