Packages

object Utility

The Utility object provides utility functions for processing instances of bound and not bound XML classes, as well as escaping text nodes.

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

Value Members

  1. def isNameChar(ch: Char): Boolean

    NameChar ::= Letter | Digit | '.' | '-' | '_' | ':'
               | CombiningChar | Extender

    See [4] and Appendix B of XML 1.0 specification.

  2. def isNameStart(ch: Char): Boolean

    NameStart ::= ( Letter | '_' )

    where Letter means in one of the Unicode general categories { Ll, Lu, Lo, Lt, Nl }.

    We do not allow a name to start with :. See [3] and Appendix B of XML 1.0 specification

  3. final def isSpace(ch: Char): Boolean

    (#x20 | #x9 | #xD | #xA)
  4. def parseAttributeValue[T](value: String, text: (String) ⇒ T, entityRef: (String) ⇒ T): List[T]
  5. def parseCharRef(ch: () ⇒ Char, nextch: () ⇒ Unit, reportSyntaxError: (String) ⇒ Unit, reportTruncatedError: (String) ⇒ Unit): String

    CharRef ::= "&#" '0'..'9' {'0'..'9'} ";"
              | "&#x" '0'..'9'|'A'..'F'|'a'..'f' { hexdigit } ";"

    See [66]