Lines Matching defs:args

23 unicodedata_UCD_decimal(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
32 if (!PyUnicode_Check(args[0])) {
33 _PyArg_BadArgument("decimal", "argument 1", "a unicode character", args[0]);
36 if (PyUnicode_READY(args[0])) {
39 if (PyUnicode_GET_LENGTH(args[0]) != 1) {
40 _PyArg_BadArgument("decimal", "argument 1", "a unicode character", args[0]);
43 chr = PyUnicode_READ_CHAR(args[0], 0);
47 default_value = args[1];
72 unicodedata_UCD_digit(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
81 if (!PyUnicode_Check(args[0])) {
82 _PyArg_BadArgument("digit", "argument 1", "a unicode character", args[0]);
85 if (PyUnicode_READY(args[0])) {
88 if (PyUnicode_GET_LENGTH(args[0]) != 1) {
89 _PyArg_BadArgument("digit", "argument 1", "a unicode character", args[0]);
92 chr = PyUnicode_READ_CHAR(args[0], 0);
96 default_value = args[1];
122 unicodedata_UCD_numeric(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
131 if (!PyUnicode_Check(args[0])) {
132 _PyArg_BadArgument("numeric", "argument 1", "a unicode character", args[0]);
135 if (PyUnicode_READY(args[0])) {
138 if (PyUnicode_GET_LENGTH(args[0]) != 1) {
139 _PyArg_BadArgument("numeric", "argument 1", "a unicode character", args[0]);
142 chr = PyUnicode_READ_CHAR(args[0], 0);
146 default_value = args[1];
405 unicodedata_UCD_is_normalized(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
414 if (!PyUnicode_Check(args[0])) {
415 _PyArg_BadArgument("is_normalized", "argument 1", "str", args[0]);
418 if (PyUnicode_READY(args[0]) == -1) {
421 form = args[0];
422 if (!PyUnicode_Check(args[1])) {
423 _PyArg_BadArgument("is_normalized", "argument 2", "str", args[1]);
426 if (PyUnicode_READY(args[1]) == -1) {
429 input = args[1];
452 unicodedata_UCD_normalize(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
461 if (!PyUnicode_Check(args[0])) {
462 _PyArg_BadArgument("normalize", "argument 1", "str", args[0]);
465 if (PyUnicode_READY(args[0]) == -1) {
468 form = args[0];
469 if (!PyUnicode_Check(args[1])) {
470 _PyArg_BadArgument("normalize", "argument 2", "str", args[1]);
473 if (PyUnicode_READY(args[1]) == -1) {
476 input = args[1];
499 unicodedata_UCD_name(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
508 if (!PyUnicode_Check(args[0])) {
509 _PyArg_BadArgument("name", "argument 1", "a unicode character", args[0]);
512 if (PyUnicode_READY(args[0])) {
515 if (PyUnicode_GET_LENGTH(args[0]) != 1) {
516 _PyArg_BadArgument("name", "argument 1", "a unicode character", args[0]);
519 chr = PyUnicode_READ_CHAR(args[0], 0);
523 default_value = args[1];