Patch #1455898: Incremental mode for "mbcs" codec.

This commit is contained in:
Martin v. Löwis 2006-06-14 05:21:04 +00:00
parent 6ce9fe880b
commit d825143be1
6 changed files with 214 additions and 50 deletions

View file

@ -938,6 +938,13 @@ PyAPI_FUNC(PyObject*) PyUnicode_DecodeMBCS(
const char *errors /* error handling */
);
PyAPI_FUNC(PyObject*) PyUnicode_DecodeMBCSStateful(
const char *string, /* MBCS encoded string */
Py_ssize_t length, /* size of string */
const char *errors, /* error handling */
Py_ssize_t *consumed /* bytes consumed */
);
PyAPI_FUNC(PyObject*) PyUnicode_AsMBCSString(
PyObject *unicode /* Unicode object */
);