| Home | Trees | Index | Help |
|
|---|
| Package pyxmpp :: Module xmppstringprep :: Class Profile |
|
Base class for stringprep profiles.
| Method Summary | |
|---|---|
Initialize Profile object. | |
Checks if sting is valid for bidirectional printing. | |
Checks for unassigned character codes. | |
Mapping part of string preparation. | |
Complete string preparation procedure for 'stored' strings. | |
Complete string preparation procedure for 'query' strings. | |
Checks for prohibited characters. | |
| Class Variable Summary | |
|---|---|
list |
cache_items = []
|
| Method Details |
|---|
__init__(self,
unassigned,
mapping,
normalization,
prohibited,
bidi=1)
|
check_bidi(self, s)Checks if sting is valid for bidirectional printing. |
check_unassigned(self, s)Checks for unassigned character codes. |
map(self, s)Mapping part of string preparation. |
prepare(self, data)
Complete string preparation procedure for 'stored' strings.
(includes checks for unassigned codes)
:Parameters:
- `data`: Unicode string to prepare.
:return: prepared string
:raise StringprepError: if the preparation fails
|
prepare_query(self, s)
Complete string preparation procedure for 'query' strings.
(without checks for unassigned codes)
:Parameters:
- `s`: Unicode string to prepare.
:return: prepared string
:raise StringprepError: if the preparation fails
|
prohibit(self, s)Checks for prohibited characters. |
| Class Variable Details |
|---|
cache_items
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed May 31 22:37:00 2006 | http://epydoc.sf.net |