Represent a set of Unicode code points.
Each code point is an integral value between 0 and 0x10FFFF. This
class is used to represent a set of code points in a manner suitable for
use as regular expression character sets.
|
_codepoints(self)
For testing purrposes only, access to the codepoints internal
representation. |
source code
|
|
|
__cmp__(self,
other)
Equality is delegated to the codepoints list. |
source code
|
|
|
__init__(self,
*args)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
add(self,
value)
Add the given value to the code point set. |
source code
|
|
|
|
|
|
|
|
|
asPattern(self,
with_brackets=True)
Return the code point set as Unicode regular expression character
group consisting of a sequence of characters or character ranges. |
source code
|
|
|
asTuples(self)
Return the codepoints as tuples denoting the ranges that are in the
set. |
source code
|
|
|
negate(self)
Return an instance that represents the inverse of this set. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|