1 /* Unicode name database interface */
9 /* revised ucnhash CAPI interface (exported through a PyCObject) */
13 /* Size of this struct */
16 /* Get name for a given character code. Returns non-zero if
17 success, zero if not. Does not set Python exceptions.
18 If self is NULL, data come from the default version of the database.
19 If it is not NULL, it should be a unicodedata.ucd_X_Y_Z object */
20 int (*getname
)(PyObject
*self
, Py_UCS4 code
, char* buffer
, int buflen
);
22 /* Get character code for a given name. Same error handling
24 int (*getcode
)(PyObject
*self
, const char* name
, int namelen
, Py_UCS4
* code
);
26 } _PyUnicode_Name_CAPI
;
31 #endif /* !Py_UCNHASH_H */