Package pyxb :: Package utils :: Module unicode |
[hide private]
[frames] | no frames]

# Module unicode

source code

This module contains support for Unicode characters as required to support the regular expression syntax defined in annex F of the XML Schema definition.

In particular, we need to be able to identify character properties and block escapes, as defined in F.1.1, by name.

- Block data: http://www.unicode.org/Public/3.1-Update/Blocks-4.txt
- Property list data: http://www.unicode.org/Public/3.1-Update/PropList-3.1.0.txt
- Full dataset: http://www.unicode.org/Public/3.1-Update/UnicodeData-3.1.0.txt

The Unicode database active at the time XML Schema 1.0 was defined is archived at http://www.unicode.org/Public/3.1-Update/UnicodeCharacterDatabase-3.1.0.html, and refers to Unicode Standard Annex #27: Unicode 3.1.

Classes | [hide private]
CodePointSetError Raised when some abuse of a CodePointSet is detected.
CodePointSet Represent a set of Unicode code points.
XML1p0e2 Regular expression support for XML Schema Data Types.

Variables | [hide private]
| _log = `logging.getLogger(__name__)`
| SupportsWideUnicode = `True`
| SingleCharEsc = `{'n': CodePointSet(0x0A), 'r': CodePointSet(0x`...``
| catEsc = `{}`
| complEsc = ``{``}``
| IsBlockEsc = `{}`
| WildcardEsc = `CodePointSet(ord('\n'), ord('\r')).negate()`
| MultiCharEsc = `{}`
| __package__ = ``'``pyxb.utils``'``
| c = ``'``]``'``
| k = ``'``Latin-1Supplement``'``
| v = `<pyxb.utils.unicode.CodePointSet object at 0x28914d0>`

Variables Details | [hide private]

  ### SingleCharEsc Value:
      {'n': CodePointSet(0x0A), 'r': CodePointSet(0x0D), 't': CodePointSet(0
      x09)}