mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#12753: Add support for Unicode name aliases and named sequences.
This commit is contained in:
parent
3764a964ca
commit
931b8aac80
10 changed files with 18125 additions and 17194 deletions
|
@ -19,11 +19,13 @@ typedef struct {
|
|||
success, zero if not. Does not set Python exceptions.
|
||||
If self is NULL, data come from the default version of the database.
|
||||
If it is not NULL, it should be a unicodedata.ucd_X_Y_Z object */
|
||||
int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen);
|
||||
int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen,
|
||||
int with_alias_and_seq);
|
||||
|
||||
/* Get character code for a given name. Same error handling
|
||||
as for getname. */
|
||||
int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code);
|
||||
int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code,
|
||||
int with_named_seq);
|
||||
|
||||
} _PyUnicode_Name_CAPI;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue