Lines Matching defs:args
20 stringlib_expandtabs(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
29 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 1, 0, argsbuf);
30 if (!args) {
36 tabsize = _PyLong_AsInt(args[0]);
62 stringlib_ljust(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
73 PyObject *iobj = _PyNumber_Index(args[0]);
86 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) {
87 fillchar = PyBytes_AS_STRING(args[1])[0];
89 else if (PyByteArray_Check(args[1]) && PyByteArray_GET_SIZE(args[1]) == 1) {
90 fillchar = PyByteArray_AS_STRING(args[1])[0];
93 _PyArg_BadArgument("ljust", "argument 2", "a byte string of length 1", args[1]);
118 stringlib_rjust(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
129 PyObject *iobj = _PyNumber_Index(args[0]);
142 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) {
143 fillchar = PyBytes_AS_STRING(args[1])[0];
145 else if (PyByteArray_Check(args[1]) && PyByteArray_GET_SIZE(args[1]) == 1) {
146 fillchar = PyByteArray_AS_STRING(args[1])[0];
149 _PyArg_BadArgument("rjust", "argument 2", "a byte string of length 1", args[1]);
174 stringlib_center(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
185 PyObject *iobj = _PyNumber_Index(args[0]);
198 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) {
199 fillchar = PyBytes_AS_STRING(args[1])[0];
201 else if (PyByteArray_Check(args[1]) && PyByteArray_GET_SIZE(args[1]) == 1) {
202 fillchar = PyByteArray_AS_STRING(args[1])[0];
205 _PyArg_BadArgument("center", "argument 2", "a byte string of length 1", args[1]);