Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/python3.8/ucnhash.h @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 69:33d812a61356 |
---|---|
1 /* Unicode name database interface */ | |
2 #ifndef Py_LIMITED_API | |
3 #ifndef Py_UCNHASH_H | |
4 #define Py_UCNHASH_H | |
5 #ifdef __cplusplus | |
6 extern "C" { | |
7 #endif | |
8 | |
9 /* revised ucnhash CAPI interface (exported through a "wrapper") */ | |
10 | |
11 #define PyUnicodeData_CAPSULE_NAME "unicodedata.ucnhash_CAPI" | |
12 | |
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 int with_alias_and_seq); | |
24 | |
25 /* Get character code for a given name. Same error handling | |
26 as for getname. */ | |
27 int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code, | |
28 int with_named_seq); | |
29 | |
30 } _PyUnicode_Name_CAPI; | |
31 | |
32 #ifdef __cplusplus | |
33 } | |
34 #endif | |
35 #endif /* !Py_UCNHASH_H */ | |
36 #endif /* !Py_LIMITED_API */ |