in scala/xml/parsing
trait TokenTests

trait TokenTests()
extends Object
with ScalaObject
Implementing classes or objects:
object Utility in scala/xml
class MarkupParser()
class Scanner() in scala/xml/dtd
class PublicID(publicId: String, systemId: String) in scala/xml/dtd
class SystemID(systemId: String) in scala/xml/dtd

Helper functions for parsing XML fragments

Method Summary
  def checkPubID(s: String): Boolean
  def checkSysID(s: String): Boolean
  def isName(s: String): Boolean
     Name ::= ( Letter | '_' ) (NameChar)* see [5] of XML 1.0 specification
  def isNameChar(ch: Char): Boolean
     NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender see [4] and Appendix B of XML 1.0 specification
  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 ':'.
  def isPubIDChar(ch: Char): Boolean
final def isSpace(ch: Char): Boolean
     (#x20 | #x9 | #xD | #xA)
final def isSpace(cs: Seq[Char]): Boolean
     (#x20 | #x9 | #xD | #xA)+
  def isValidIANAEncoding(ianaEncoding: Seq[Char]): Boolean
     Returns true if the encoding name is a valid IANA encoding.

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/ScalaObject-class
getScalaType

Method Detail

isSpace

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

isSpace

  final def isSpace(cs: Seq[Char]): Boolean
(#x20 | #x9 | #xD | #xA)+

isNameChar

  def isNameChar(ch: Char): Boolean
NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender see [4] and Appendix B of XML 1.0 specification

isNameStart

  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

isName

  def isName(s: String): Boolean
Name ::= ( Letter | '_' ) (NameChar)* see [5] of XML 1.0 specification

isPubIDChar

  def isPubIDChar(ch: Char): Boolean

isValidIANAEncoding

  def isValidIANAEncoding(ianaEncoding: Seq[Char]): Boolean
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.
Parameters:
ianaEncoding - The IANA encoding name.

checkSysID

  def checkSysID(s: String): Boolean

checkPubID

  def checkPubID(s: String): Boolean