Lines Matching defs:name
77 const char *name;
87 {"unidata_version", T_STRING, offsetof(PreviousDBVersion, name), READONLY},
99 const char*name, const change_record* (*getrecord)(Py_UCS4),
106 self->name = name;
987 /* unicode character name tables */
1066 /* Find the name associated with the given code point.
1174 _cmpname(PyObject *self, int code, const char* name, int namelen)
1176 /* check if code corresponds to the given name */
1182 if (Py_TOUPPER(name[i]) != buffer[i])
1225 const char* name, int namelen, Py_UCS4* code, int with_named_seq)
1227 /* Return the code point associated with the given name.
1236 if (strncmp(name, "HANGUL SYLLABLE ", 16) == 0) {
1238 const char *pos = name + 16;
1245 if (L != -1 && V != -1 && T != -1 && pos-name == namelen) {
1249 /* Otherwise, it's an illegal syllable name. */
1254 if (strncmp(name, "CJK UNIFIED IDEOGRAPH-", 22) == 0) {
1257 name += 22;
1263 if (*name >= '0' && *name <= '9')
1264 v += *name - '0';
1265 else if (*name >= 'A' && *name <= 'F')
1266 v += *name - 'A' + 10;
1269 name++;
1281 h = (unsigned int) _gethash(name, namelen, code_magic);
1286 if (_cmpname(self, v, name, namelen)) {
1297 if (_cmpname(self, v, name, namelen)) {
1307 capi_getcode(const char* name, int namelen, Py_UCS4* code,
1310 return _getcode(NULL, name, namelen, code, with_named_seq);
1346 unicodedata.UCD.name
1353 Returns the name assigned to the character chr as a string.
1355 If no name is defined, default is returned, or, if not given,
1363 char name[NAME_MAXLEN+1];
1366 if (!_getucname(self, c, name, NAME_MAXLEN, 0)) {
1368 PyErr_SetString(PyExc_ValueError, "no such name");
1377 return PyUnicode_FromString(name);
1384 name: str(accept={str, robuffer}, zeroes=True)
1387 Look up character by name.
1389 If a character with the given name is found, return the
1394 unicodedata_UCD_lookup_impl(PyObject *self, const char *name,
1401 PyErr_SetString(PyExc_KeyError, "name too long");
1405 if (!_getcode(self, name, (int)name_length, &code, 1)) {
1406 PyErr_Format(PyExc_KeyError, "undefined character name '%s'", name);
1467 .name = "unicodedata.UCD",