Lines Matching defs:arg
167 unicodedata_UCD_category(PyObject *self, PyObject *arg)
172 if (!PyUnicode_Check(arg)) {
173 _PyArg_BadArgument("category", "argument", "a unicode character", arg);
176 if (PyUnicode_READY(arg)) {
179 if (PyUnicode_GET_LENGTH(arg) != 1) {
180 _PyArg_BadArgument("category", "argument", "a unicode character", arg);
183 chr = PyUnicode_READ_CHAR(arg, 0);
205 unicodedata_UCD_bidirectional(PyObject *self, PyObject *arg)
210 if (!PyUnicode_Check(arg)) {
211 _PyArg_BadArgument("bidirectional", "argument", "a unicode character", arg);
214 if (PyUnicode_READY(arg)) {
217 if (PyUnicode_GET_LENGTH(arg) != 1) {
218 _PyArg_BadArgument("bidirectional", "argument", "a unicode character", arg);
221 chr = PyUnicode_READ_CHAR(arg, 0);
243 unicodedata_UCD_combining(PyObject *self, PyObject *arg)
249 if (!PyUnicode_Check(arg)) {
250 _PyArg_BadArgument("combining", "argument", "a unicode character", arg);
253 if (PyUnicode_READY(arg)) {
256 if (PyUnicode_GET_LENGTH(arg) != 1) {
257 _PyArg_BadArgument("combining", "argument", "a unicode character", arg);
260 chr = PyUnicode_READ_CHAR(arg, 0);
287 unicodedata_UCD_mirrored(PyObject *self, PyObject *arg)
293 if (!PyUnicode_Check(arg)) {
294 _PyArg_BadArgument("mirrored", "argument", "a unicode character", arg);
297 if (PyUnicode_READY(arg)) {
300 if (PyUnicode_GET_LENGTH(arg) != 1) {
301 _PyArg_BadArgument("mirrored", "argument", "a unicode character", arg);
304 chr = PyUnicode_READ_CHAR(arg, 0);
328 unicodedata_UCD_east_asian_width(PyObject *self, PyObject *arg)
333 if (!PyUnicode_Check(arg)) {
334 _PyArg_BadArgument("east_asian_width", "argument", "a unicode character", arg);
337 if (PyUnicode_READY(arg)) {
340 if (PyUnicode_GET_LENGTH(arg) != 1) {
341 _PyArg_BadArgument("east_asian_width", "argument", "a unicode character", arg);
344 chr = PyUnicode_READ_CHAR(arg, 0);
366 unicodedata_UCD_decomposition(PyObject *self, PyObject *arg)
371 if (!PyUnicode_Check(arg)) {
372 _PyArg_BadArgument("decomposition", "argument", "a unicode character", arg);
375 if (PyUnicode_READY(arg)) {
378 if (PyUnicode_GET_LENGTH(arg) != 1) {
379 _PyArg_BadArgument("decomposition", "argument", "a unicode character", arg);
382 chr = PyUnicode_READ_CHAR(arg, 0);
548 unicodedata_UCD_lookup(PyObject *self, PyObject *arg)
554 if (!PyArg_Parse(arg, "s#:lookup", &name, &name_length)) {