mirror of
https://github.com/python/cpython.git
synced 2025-10-13 02:13:03 +00:00
Port UCS1 and charmap codecs to new API.
This commit is contained in:
parent
9e8166843c
commit
23e275b3ad
3 changed files with 134 additions and 89 deletions
|
@ -1425,6 +1425,12 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeCharmap(
|
|||
(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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue