Packages

t

scala.xml.parsing

TokenTests

trait TokenTests extends AnyRef

Helper functions for parsing XML fragments

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

Value Members

  1. def checkPubID(s: String): Boolean
  2. def checkSysID(s: String): Boolean
  3. def isAlpha(c: Char): Boolean

    These are 99% sure to be redundant but refactoring on the safe side.

  4. def isAlphaDigit(c: Char): Boolean
  5. def isName(s: String): Boolean

    Name ::= ( Letter | '_' ) (NameChar)*

    See [5] of XML 1.0 specification.

  6. def isNameChar(ch: Char): Boolean

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

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

  7. 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 [4] and Appendix B of XML 1.0 specification

  8. def isPubIDChar(ch: Char): Boolean
  9. final def isSpace(cs: collection.Seq[Char]): Boolean

    (#x20 | #x9 | #xD | #xA)+
  10. final def isSpace(ch: Char): Boolean

    (#x20 | #x9 | #xD | #xA)
  11. def isValidIANAEncoding(ianaEncoding: collection.Seq[Char]): Boolean

    Returns true if the encoding name is a valid IANA encoding.

    Returns true if the encoding name is a valid IANA encoding. This method does not verify that there is a decoder available for this encoding, only that the characters are valid for an IANA encoding name.

    ianaEncoding

    The IANA encoding name.