trait TokenTests extends AnyRef
Helper functions for parsing XML fragments
- Alphabetic
- By Inheritance
- TokenTests
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def checkPubID(s: String): Boolean
- def checkSysID(s: String): Boolean
- def isAlpha(c: Char): Boolean
These are 99% sure to be redundant but refactoring on the safe side.
- def isAlphaDigit(c: Char): Boolean
- def isName(s: String): Boolean
Name ::= ( Letter | '_' ) (NameChar)*
See [5] of XML 1.0 specification.
- def isNameChar(ch: Char): Boolean
NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | #xB7 | CombiningChar | Extender
See [4] and [4a] of 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
:
. See [4] and Appendix B of XML 1.0 specification - def isPubIDChar(ch: Char): Boolean
- final def isSpace(cs: collection.Seq[Char]): Boolean
(#x20 | #x9 | #xD | #xA)+
- final def isSpace(ch: Char): Boolean
(#x20 | #x9 | #xD | #xA)
- 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.