Define character sets etc for Unicode strings.
See base class for full documentation.
|
|
|
|
|
code_to_char(self,
code)
Convert a code - an integer value between min and max, that maps the
alphabet to a contiguous set of integers - to a character in the
alphabet. |
source code
|
|
|
|
char_to_code(self,
char)
Convert a character in the alphabet to a code - an integer value
between min and max, that maps the alphabet to a contiguous set of
integers. |
source code
|
|
|
|
coerce(self,
char)
Force a character in str, unicode, or the alphabet itself, to be a
member of the alphabet. |
source code
|
|
|
|
join(self,
*strings)
Construct a word in the alphabet, given a list of words and/or
characters. |
source code
|
|
|
|
|
|
|
|
|
|
space(self,
char)
Test whether the character is a whitespace or not. |
source code
|
|
|
|
word(self,
char)
Test whether the character is a word character or not. |
source code
|
|
|
|
unpack(self,
char,
flags)
Return either (True, (lo, hi)) or (False, char) |
source code
|
|
|
Inherited from base.BaseAlphabet:
after,
before,
unescape
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|