Last change
on this file was 391, checked in by dmik, 11 years ago |
python: Merge vendor 2.7.6 to trunk.
|
-
Property svn:eol-style
set to
native
|
File size:
924 bytes
|
Rev | Line | |
---|
[2] | 1 | /* Unicode name database interface */
|
---|
| 2 |
|
---|
| 3 | #ifndef Py_UCNHASH_H
|
---|
| 4 | #define Py_UCNHASH_H
|
---|
| 5 | #ifdef __cplusplus
|
---|
| 6 | extern "C" {
|
---|
| 7 | #endif
|
---|
| 8 |
|
---|
[391] | 9 | /* revised ucnhash CAPI interface (exported through a "wrapper") */
|
---|
[2] | 10 |
|
---|
[391] | 11 | #define PyUnicodeData_CAPSULE_NAME "unicodedata.ucnhash_CAPI"
|
---|
| 12 |
|
---|
[2] | 13 | typedef struct {
|
---|
| 14 |
|
---|
| 15 | /* Size of this struct */
|
---|
| 16 | int size;
|
---|
| 17 |
|
---|
| 18 | /* Get name for a given character code. Returns non-zero if
|
---|
| 19 | success, zero if not. Does not set Python exceptions.
|
---|
| 20 | If self is NULL, data come from the default version of the database.
|
---|
| 21 | If it is not NULL, it should be a unicodedata.ucd_X_Y_Z object */
|
---|
| 22 | int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen);
|
---|
| 23 |
|
---|
| 24 | /* Get character code for a given name. Same error handling
|
---|
| 25 | as for getname. */
|
---|
| 26 | int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code);
|
---|
| 27 |
|
---|
| 28 | } _PyUnicode_Name_CAPI;
|
---|
| 29 |
|
---|
| 30 | #ifdef __cplusplus
|
---|
| 31 | }
|
---|
| 32 | #endif
|
---|
| 33 | #endif /* !Py_UCNHASH_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.