#if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
# include "pycore_gc.h"
# include "pycore_runtime.h"
#endif
#include "pycore_abstract.h"
#include "pycore_modsupport.h"
PyDoc_STRVAR(stringlib_expandtabs__doc__,
"expandtabs($self, /, tabsize=8)\n"
"--\n"
"\n"
"Return a copy where all tab characters are expanded using spaces.\n"
"\n"
"If tabsize is not given, a tab size of 8 characters is assumed.");
#define STRINGLIB_EXPANDTABS_METHODDEF …
static PyObject *
stringlib_expandtabs_impl(PyObject *self, int tabsize);
static PyObject *
stringlib_expandtabs(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
{ … }
PyDoc_STRVAR(stringlib_ljust__doc__,
"ljust($self, width, fillchar=b\' \', /)\n"
"--\n"
"\n"
"Return a left-justified string of length width.\n"
"\n"
"Padding is done using the specified fill character.");
#define STRINGLIB_LJUST_METHODDEF …
static PyObject *
stringlib_ljust_impl(PyObject *self, Py_ssize_t width, char fillchar);
static PyObject *
stringlib_ljust(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
{ … }
PyDoc_STRVAR(stringlib_rjust__doc__,
"rjust($self, width, fillchar=b\' \', /)\n"
"--\n"
"\n"
"Return a right-justified string of length width.\n"
"\n"
"Padding is done using the specified fill character.");
#define STRINGLIB_RJUST_METHODDEF …
static PyObject *
stringlib_rjust_impl(PyObject *self, Py_ssize_t width, char fillchar);
static PyObject *
stringlib_rjust(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
{ … }
PyDoc_STRVAR(stringlib_center__doc__,
"center($self, width, fillchar=b\' \', /)\n"
"--\n"
"\n"
"Return a centered string of length width.\n"
"\n"
"Padding is done using the specified fill character.");
#define STRINGLIB_CENTER_METHODDEF …
static PyObject *
stringlib_center_impl(PyObject *self, Py_ssize_t width, char fillchar);
static PyObject *
stringlib_center(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
{ … }
PyDoc_STRVAR(stringlib_zfill__doc__,
"zfill($self, width, /)\n"
"--\n"
"\n"
"Pad a numeric string with zeros on the left, to fill a field of the given width.\n"
"\n"
"The original string is never truncated.");
#define STRINGLIB_ZFILL_METHODDEF …
static PyObject *
stringlib_zfill_impl(PyObject *self, Py_ssize_t width);
static PyObject *
stringlib_zfill(PyObject *self, PyObject *arg)
{ … }