final object Utility

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

Constructors

Members

[+] private val unescMap : Map [ String, Char ]
[+] def isName ( s: String ) : Boolean

{{{ Name ::= ( Letter | '_' ) (NameChar)* }}} See [5] of XML 1.0 specification.

{{{ 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.

{{{ 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... [3]

{{{ 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

[+] final def isSpace ( ch: Char ) : Boolean

{{{ (#x20 | #x9 | #xD | #xA) }}}

{{{ (#x20 | #x9 | #xD | #xA) }}}

[+] final def isSpace ( cs: Seq [ Char ] ) : Boolean

{{{ (#x20 | #x9 | #xD | #xA)+ }}}

{{{ (#x20 | #x9 | #xD | #xA)+ }}}

[+] def parseAttributeValue ( value: String , text: String => T , entityRef: String => T ) : List [ T ]
[+] 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]

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

[+] private final def unescape ( ref: String , s: StringBuilder ) : StringBuilder

Appends unescaped string to s, amp becomes &, lt becomes < etc..

Appends unescaped string to s, amp becomes &, lt becomes < etc..