Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/mingw32/Python27/include/ucnhash.h @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | 2a2c65a20a8b |
children |
rev | line source |
---|---|
Chris@87 | 1 /* Unicode name database interface */ |
Chris@87 | 2 |
Chris@87 | 3 #ifndef Py_UCNHASH_H |
Chris@87 | 4 #define Py_UCNHASH_H |
Chris@87 | 5 #ifdef __cplusplus |
Chris@87 | 6 extern "C" { |
Chris@87 | 7 #endif |
Chris@87 | 8 |
Chris@87 | 9 /* revised ucnhash CAPI interface (exported through a "wrapper") */ |
Chris@87 | 10 |
Chris@87 | 11 #define PyUnicodeData_CAPSULE_NAME "unicodedata.ucnhash_CAPI" |
Chris@87 | 12 |
Chris@87 | 13 typedef struct { |
Chris@87 | 14 |
Chris@87 | 15 /* Size of this struct */ |
Chris@87 | 16 int size; |
Chris@87 | 17 |
Chris@87 | 18 /* Get name for a given character code. Returns non-zero if |
Chris@87 | 19 success, zero if not. Does not set Python exceptions. |
Chris@87 | 20 If self is NULL, data come from the default version of the database. |
Chris@87 | 21 If it is not NULL, it should be a unicodedata.ucd_X_Y_Z object */ |
Chris@87 | 22 int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen); |
Chris@87 | 23 |
Chris@87 | 24 /* Get character code for a given name. Same error handling |
Chris@87 | 25 as for getname. */ |
Chris@87 | 26 int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code); |
Chris@87 | 27 |
Chris@87 | 28 } _PyUnicode_Name_CAPI; |
Chris@87 | 29 |
Chris@87 | 30 #ifdef __cplusplus |
Chris@87 | 31 } |
Chris@87 | 32 #endif |
Chris@87 | 33 #endif /* !Py_UCNHASH_H */ |