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 capitalizeFully: String

    Permalink

    Converts all the whitespace separated words in the string into capitalized words, that is each word is made up of a titlecase character and then a series of lowercase characters.

  7. def center(size: Int, padStr: String): String

    Permalink

    Centers a String in a larger String of the specified size.

    Centers a String in a larger String of the specified size. Uses a supplied String as the value to pad the String with.

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

    Permalink

    Centers a String in a larger String of the specified size.

    Centers a String in a larger String of the specified size. Uses a supplied character as the value to pad the String with.

  9. def center(size: Int): String

    Permalink

    Centers a String in a larger String of the specified size using the space character (' ').

  10. def distanceTo(str2: String): Int

    Permalink

    Find the edit distance to another String

  11. def escapeCsv: String

    Permalink

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

  12. def escapeHtml: String

    Permalink

    Escapes the characters in a String using HTML entities.

  13. def escapeJava: String

    Permalink

    Escapes the characters in a String using Java String rules.

  14. def escapeJson: String

    Permalink

    Escapes the characters in a String using Json String rules.

  15. def escapeXml: String

    Permalink

    Escapes the characters in a String using XML entities.

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

    Permalink
    Definition Classes
    AnyVal → Any
  17. def initials: String

    Permalink

    Extracts the initial characters from each word in the String.

  18. def isAlphabetic: Boolean

    Permalink

    Checks if the string contains only Unicode letters.

  19. def isAlphanumeric: Boolean

    Permalink

    Checks if the string contains only Unicode letters or digits.

  20. def isAscii: Boolean

    Permalink

    Checks if string contains only ASCII characters.

    Checks if string contains only ASCII characters. Note that we consider the empty string to be ascii.

  21. def isAsciiPrintable: Boolean

    Permalink

    Checks if the string contains only ASCII printable characters.

  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isNumeric: Boolean

    Permalink

    Checks if the string contains only Unicode digits.

  24. def isPunctuation: Boolean

    Permalink

    Checks if string contains only ASCII punctuation characters.

    Checks if string contains only ASCII punctuation characters. One of !"#$%&'()*+,-./:;<=>?@[\]^_{|}~

  25. def isWhitespace: Boolean

    Permalink

    Checks if string contains only whitespace.

    Checks if string contains only whitespace. Note that we consider the empty string to be whitespace.

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

    Permalink

    Left pad a String with a specified String.

    Left pad a String with a specified String. The String is padded to the specified size.

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

    Permalink

    Left pad a String with a specified character.

    Left pad a String with a specified character. The String is padded to the specified size.

  28. def leftPad(size: Int): String

    Permalink

    Left pad a String with spaces (' ').

    Left pad a String with spaces (' '). The String is padded to the specified size.

  29. def normalizeSpace: String

    Permalink

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

  30. def replaceVariables(values: Map[String, String]): String

    Permalink

    Replaces all the occurrences of variables with their matching values from the map.

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

    Permalink

    Right pad a String with a specified String.

    Right pad a String with a specified String. The String is padded to the specified size.

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

    Permalink

    Right pad a String with a specified character.

    Right pad a String with a specified character. The String is padded to the specified size.

  33. def rightPad(size: Int): String

    Permalink

    Right pad a String with spaces (' ').

    Right pad a String with spaces (' '). The String is padded to the specified size.

  34. def splitCamelCase: Array[String]

    Permalink
  35. def splitOnWhitespace: Array[String]

    Permalink

    Splits the provided text on whitespace.

  36. val str: String

    Permalink
  37. def stripAccents: String

    Permalink

    Removes diacritics from a string.

  38. def swapCase: String

    Permalink

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

  39. def toString(): String

    Permalink
    Definition Classes
    Any
  40. def unescapeCsv: String

    Permalink

    Returns a String value for an unescaped CSV column.

  41. def unescapeHtml: String

    Permalink

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

  42. def unescapeJava: String

    Permalink

    Unescapes any Java literals found in the String.

  43. def unescapeJson: String

    Permalink

    Unescapes any Json literals found in the String.

  44. def unescapeXml: String

    Permalink

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

  45. def wordWrap(wrapLength: Int): String

    Permalink

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

Inherited from AnyVal

Inherited from Any

Ungrouped