diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-09-20 10:35:46 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-09-20 10:35:46 (GMT) |
commit | c60e6f777114f43c64f1b83f9ad2b6e4efd220e7 (patch) | |
tree | c7c600ed692c243edbd520872a2648cb9c01a8c1 /Include | |
parent | 26e3b681b26c9978c819396e278f43d356d86f9e (diff) | |
download | cpython-c60e6f777114f43c64f1b83f9ad2b6e4efd220e7.zip cpython-c60e6f777114f43c64f1b83f9ad2b6e4efd220e7.tar.gz cpython-c60e6f777114f43c64f1b83f9ad2b6e4efd220e7.tar.bz2 |
Patch #435971: UTF-7 codec by Brian Quinlan.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index d7540fb..41feae2 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -607,6 +607,24 @@ extern DL_IMPORT(PyObject*) PyUnicode_AsEncodedString( const char *errors /* error handling */ ); +/* --- UTF-7 Codecs ------------------------------------------------------- */ + +extern DL_IMPORT(PyObject*) PyUnicode_DecodeUTF7( + const char *string, /* UTF-7 encoded string */ + int length, /* size of string */ + const char *errors /* error handling */ + ); + +extern DL_IMPORT(PyObject*) PyUnicode_EncodeUTF7( + const Py_UNICODE *data, /* Unicode char buffer */ + int length, /* number of Py_UNICODE chars to encode */ + int encodeSetO, /* force the encoder to encode characters in + Set O, as described in RFC2152 */ + int encodeWhiteSpace, /* force the encoder to encode space, tab, + carriage return and linefeed characters */ + const char *errors /* error handling */ + ); + /* --- UTF-8 Codecs ------------------------------------------------------- */ extern DL_IMPORT(PyObject*) PyUnicode_DecodeUTF8( |