object StrUtils
- Alphabetic
- By Inheritance
- StrUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type CharConversion = (Array[Char], Int)
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cnvLoop(str: String, converters: List[Converter]): String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- def escapePattern(str: String): String
- def escapeStringLiteral(str: String): String
Escape a string Example: "Hi\n\t" -> "Hi\\n\\t"
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unescapeCode(str: String): String
- def unescapeIRI(str: String): String
- def unescapePattern(str: String): String
- def unescapeStringLiteral(str: String): String
Unescape unicode numbers Given a string like: "p\u0031", return "p1" The code implements the Turtle rules: https://www.w3.org/TR/turtle/#sec-escapes
Unescape unicode numbers Given a string like: "p\u0031", return "p1" The code implements the Turtle rules: https://www.w3.org/TR/turtle/#sec-escapes
- str
input string
- returns
unscaped output string
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()