org.dbpedia.extraction.util

StringUtils

object StringUtils

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StringUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. object BooleanLiteral

  5. object IntLiteral

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  10. def escape(target: StringBuilder, str: String, replace: Array[String]): StringBuilder

    Build a copy of the given string, replacing some chars by replacement strings.

    Build a copy of the given string, replacing some chars by replacement strings. The replacement array is indexed by character value. Only characters for which the replacement array contains a non-null value will be replaced.

    TODO: don't double-escape existing escape sequences

    TODO: This method cannot replace code points > 0xFFFF.

    target

    If null, the method may return null or a new StringBuilder. Otherwise, the method will return the given target.

    replace

    mapping from characters to replacement strings.

    returns

    null if target was null and no characters had to be escaped

  11. def escape(input: String, replace: Array[String]): String

    Build a copy of the given string, replacing some chars by replacement strings.

    Build a copy of the given string, replacing some chars by replacement strings. The replacement array is indexed by character value. Only characters for which the replacement array contains a non-null value will be replaced.

    TODO: don't double-escape existing escape sequences

    TODO: This method cannot replace code points > 0xFFFF.

    input

    input string

    replace

    mapping from characters to replacement strings.

    returns

    new string if characters had to be escaped, input string otherwise

  12. def escape(target: StringBuilder, str: String, esc: Char, replace: String): StringBuilder

    Build a copy of the first string in which all occurrences of chars from the third string have been converted to UTF-8 hex escapes where each two-digit hex byte is prefixed by the given escape character.

    Build a copy of the first string in which all occurrences of chars from the third string have been converted to UTF-8 hex escapes where each two-digit hex byte is prefixed by the given escape character.

    This method is pretty inefficient. If it is repeatedly used with the same chars, you should use replacements() and escape() below.

    TODO: don't double-escape existing escape sequences

    TODO: This method cannot replace code points > 0xFFFF.

    target

    If null, the method may return null or a new StringBuilder. Otherwise, the method will return the given target.

    returns

    null if target was null and no characters had to be escaped

  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def formatCurrentTimestamp: String

  15. def formatTimestamp(timestamp: Long): String

  16. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  19. def md5sum(input: String): String

    Caclulate the MD5 sum of the input String

    Caclulate the MD5 sum of the input String

    input

    the string we want to calculate the MD5 sum for

    returns

    the md5sum hash of the input string

  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def parseTimestamp(str: String): Long

  24. def prettyMillis(millis: Long): String

    Displays minutes, seconds and milliseconds.

  25. def replaceChars(target: StringBuilder, str: String, replace: String, by: String): StringBuilder

    Build a copy of the given string in which all occurrences of chars from the second string have been replaced by the corresponding char from the third string.

    Build a copy of the given string in which all occurrences of chars from the second string have been replaced by the corresponding char from the third string. If there is no corresponding char (i.e. the third string is shorter than the second one), the affected char is removed.

    TODO: This method cannot replace code points > 0xFFFF.

    target

    If null, the method may return null or a new StringBuilder. Otherwise, the method will return the given target.

    replace

    list of replaced characters

    by

    list of replacement characters

    returns

    null if target was null and no characters had to be escaped

  26. def replacements(esc: Char, chars: String, limit: Int = 256): Array[String]

    Produces a replacement array that can be used for escape() below.

    Produces a replacement array that can be used for escape() below. Call this method once, save its result and use it to call escape() below repeatedly.

    limit

    highest allowed code point. Safety catch - if someone gave us a string containing a very high code point, we would allocate an array whose length is that code point. If that is desired, at least force the user to make it explicit.

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

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped