Lines Matching refs:args

98 unicode_center(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
109 PyObject *iobj = _PyNumber_Index(args[0]);
122 if (!convert_uc(args[1], &fillchar)) {
154 unicode_encode(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
164 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 2, 0, argsbuf);
165 if (!args) {
171 if (args[0]) {
172 if (!PyUnicode_Check(args[0])) {
173 _PyArg_BadArgument("encode", "argument 'encoding'", "str", args[0]);
177 encoding = PyUnicode_AsUTF8AndSize(args[0], &encoding_length);
189 if (!PyUnicode_Check(args[1])) {
190 _PyArg_BadArgument("encode", "argument 'errors'", "str", args[1]);
194 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length);
224 unicode_expandtabs(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
233 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 1, 0, argsbuf);
234 if (!args) {
240 tabsize = _PyLong_AsInt(args[0]);
532 unicode_ljust(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
543 PyObject *iobj = _PyNumber_Index(args[0]);
556 if (!convert_uc(args[1], &fillchar)) {
599 unicode_strip(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
610 chars = args[0];
633 unicode_lstrip(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
644 chars = args[0];
667 unicode_rstrip(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
678 chars = args[0];
707 unicode_replace(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
717 if (!PyUnicode_Check(args[0])) {
718 _PyArg_BadArgument("replace", "argument 1", "str", args[0]);
721 if (PyUnicode_READY(args[0]) == -1) {
724 old = args[0];
725 if (!PyUnicode_Check(args[1])) {
726 _PyArg_BadArgument("replace", "argument 2", "str", args[1]);
729 if (PyUnicode_READY(args[1]) == -1) {
732 new = args[1];
738 PyObject *iobj = _PyNumber_Index(args[2]);
841 unicode_rjust(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
852 PyObject *iobj = _PyNumber_Index(args[0]);
865 if (!convert_uc(args[1], &fillchar)) {
902 unicode_split(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
912 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 2, 0, argsbuf);
913 if (!args) {
919 if (args[0]) {
920 sep = args[0];
927 PyObject *iobj = _PyNumber_Index(args[1]);
1001 unicode_rsplit(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1011 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 2, 0, argsbuf);
1012 if (!args) {
1018 if (args[0]) {
1019 sep = args[0];
1026 PyObject *iobj = _PyNumber_Index(args[1]);
1059 unicode_splitlines(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1068 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 1, 0, argsbuf);
1069 if (!args) {
1075 keepends = _PyLong_AsInt(args[0]);
1125 unicode_maketrans(void *null, PyObject *const *args, Py_ssize_t nargs)
1135 x = args[0];
1139 if (!PyUnicode_Check(args[1])) {
1140 _PyArg_BadArgument("maketrans", "argument 2", "str", args[1]);
1143 if (PyUnicode_READY(args[1]) == -1) {
1146 y = args[1];
1150 if (!PyUnicode_Check(args[2])) {
1151 _PyArg_BadArgument("maketrans", "argument 3", "str", args[2]);
1154 if (PyUnicode_READY(args[2]) == -1) {
1157 z = args[2];
1293 unicode_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1300 Py_ssize_t nargs = PyTuple_GET_SIZE(args);
1306 fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 3, 0, argsbuf);