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.

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 0x1ef0450>
Variables Details [hide private]

SingleCharEsc

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