Mercurial > cpython-lru_cache-weakref
diff Include/unicodeobject.h @ 73302:295fdfd4f422
Port UCS1 and charmap codecs to new API.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 02 Nov 2011 18:02:51 +0100 |
| parents | 80a7ab9ac29f |
| children | 783b4b9dfa5e |
line wrap: on
line diff
--- a/Include/unicodeobject.h Wed Nov 02 12:45:42 2011 +0100 +++ b/Include/unicodeobject.h Wed Nov 02 18:02:51 2011 +0100 @@ -1425,6 +1425,12 @@ (unicode ordinal -> char ordinal) */ const char *errors /* error handling */ ); +PyAPI_FUNC(PyObject*) _PyUnicode_EncodeCharmap( + PyObject *unicode, /* Unicode object */ + PyObject *mapping, /* character mapping + (unicode ordinal -> char ordinal) */ + const char *errors /* error handling */ + ); #endif /* Translate a Py_UNICODE buffer of the given length by applying a
