Packages

o

es.weso.utils

StrUtils

object StrUtils

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

Type Members

  1. type CharConversion = (Array[Char], Int)
  2. type Converter = (String, Int) ⇒ Option[CharConversion]

    Converter takes an index i into a string and checks how many charts it can replace If it can't replace, it returns None (no conversion) If it replaces, it returns the characters that are replaced and the next index in the string Rationale: Some conversions may require some lookahead, in which case, the index will be i + characters read

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. def cnvLoop(str: String, converters: List[Converter]): String
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def escapeDot(str: String): String

    escapeDot: Escapes strings to be represented as labels in Dot It follows dot conventions: https://graphviz.gitlab.io/_pages/doc/info/lang.html Extra characters are escaped using their Unicode representation

  10. def escapePattern(str: String): String
  11. def escapeStringLiteral(str: String): String

    Escape a string Example: "Hi\n\t" -> "Hi\\n\\t"

  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. def unescapeCode(str: String): String
  21. def unescapeIRI(str: String): String
  22. def unescapePattern(str: String): String
  23. def unescapeStringLiteral(str: String): String

    Unescape unicode numbers Given a string like: "p1", return "p1" The code implements the Turtle rules: https://www.w3.org/TR/turtle/#sec-escapes

    Unescape unicode numbers Given a string like: "p1", return "p1" The code implements the Turtle rules: https://www.w3.org/TR/turtle/#sec-escapes

    str

    input string

    returns

    unscaped output string

  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped