Home
last modified time | relevance | path

Searched refs:fillchar (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Objects/stringlib/
Dtransmogrify.h131 char fillchar = ' '; in stringlib_ljust() local
133 if (!PyArg_ParseTuple(args, "n|c:ljust", &width, &fillchar)) in stringlib_ljust()
147 return pad(self, 0, width - STRINGLIB_LEN(self), fillchar); in stringlib_ljust()
161 char fillchar = ' '; in stringlib_rjust() local
163 if (!PyArg_ParseTuple(args, "n|c:rjust", &width, &fillchar)) in stringlib_rjust()
177 return pad(self, width - STRINGLIB_LEN(self), 0, fillchar); in stringlib_rjust()
192 char fillchar = ' '; in stringlib_center() local
194 if (!PyArg_ParseTuple(args, "n|c:center", &width, &fillchar)) in stringlib_center()
211 return pad(self, left, marg - left, fillchar); in stringlib_center()
/external/python/cpython3/Objects/clinic/
Dunicodeobject.c.h77 unicode_center_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
84 Py_UCS4 fillchar = ' '; in unicode_center() local
87 &width, convert_uc, &fillchar)) { in unicode_center()
90 return_value = unicode_center_impl(self, width, fillchar); in unicode_center()
446 unicode_ljust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
453 Py_UCS4 fillchar = ' '; in unicode_ljust() local
456 &width, convert_uc, &fillchar)) { in unicode_ljust()
459 return_value = unicode_ljust_impl(self, width, fillchar); in unicode_ljust()
626 unicode_rjust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
633 Py_UCS4 fillchar = ' '; in unicode_rjust() local
[all …]
/external/python/cpython3/Objects/stringlib/
Dtransmogrify.h126 char fillchar = ' '; in stringlib_ljust() local
128 if (!PyArg_ParseTuple(args, "n|c:ljust", &width, &fillchar)) in stringlib_ljust()
135 return pad(self, 0, width - STRINGLIB_LEN(self), fillchar); in stringlib_ljust()
143 char fillchar = ' '; in stringlib_rjust() local
145 if (!PyArg_ParseTuple(args, "n|c:rjust", &width, &fillchar)) in stringlib_rjust()
152 return pad(self, width - STRINGLIB_LEN(self), 0, fillchar); in stringlib_rjust()
161 char fillchar = ' '; in stringlib_center() local
163 if (!PyArg_ParseTuple(args, "n|c:center", &width, &fillchar)) in stringlib_center()
173 return pad(self, left, marg - left, fillchar); in stringlib_center()
/external/python/cpython2/Objects/
Dstringobject.c3198 char fillchar = ' '; in string_ljust() local
3200 if (!PyArg_ParseTuple(args, "n|c:ljust", &width, &fillchar)) in string_ljust()
3208 return pad(self, 0, width - PyString_GET_SIZE(self), fillchar); in string_ljust()
3222 char fillchar = ' '; in string_rjust() local
3224 if (!PyArg_ParseTuple(args, "n|c:rjust", &width, &fillchar)) in string_rjust()
3232 return pad(self, width - PyString_GET_SIZE(self), 0, fillchar); in string_rjust()
3247 char fillchar = ' '; in string_center() local
3249 if (!PyArg_ParseTuple(args, "n|c:center", &width, &fillchar)) in string_center()
3260 return pad(self, left, marg - left, fillchar); in string_center()
Dunicodeobject.c6120 Py_UNICODE fillchar = ' '; in unicode_center() local
6122 if (!PyArg_ParseTuple(args, "n|O&:center", &width, convert_uc, &fillchar)) in unicode_center()
6133 return (PyObject*) pad(self, left, marg - left, fillchar); in unicode_center()
7027 Py_UNICODE fillchar = ' '; in unicode_ljust() local
7029 if (!PyArg_ParseTuple(args, "n|O&:ljust", &width, convert_uc, &fillchar)) in unicode_ljust()
7037 return (PyObject*) pad(self, 0, width - self->length, fillchar); in unicode_ljust()
7415 Py_UNICODE fillchar = ' '; in unicode_rjust() local
7417 if (!PyArg_ParseTuple(args, "n|O&:rjust", &width, convert_uc, &fillchar)) in unicode_rjust()
7425 return (PyObject*) pad(self, width - self->length, 0, fillchar); in unicode_rjust()
/external/python/cpython2/Doc/library/
Dstring.rst1022 .. function:: ljust(s, width[, fillchar])
1023 rjust(s, width[, fillchar])
1024 center(s, width[, fillchar])
1028 characters wide, created by padding the string *s* with the character *fillchar*
Dstdtypes.rst886 .. method:: str.center(width[, fillchar])
889 specified *fillchar* (default is a space).
892 Support for the *fillchar* argument.
1080 .. method:: str.ljust(width[, fillchar])
1083 using the specified *fillchar* (default is a space). The original string is
1087 Support for the *fillchar* argument.
1144 .. method:: str.rjust(width[, fillchar])
1147 using the specified *fillchar* (default is a space). The original string is
1151 Support for the *fillchar* argument.
/external/python/cpython3/Objects/
Dunicodeobject.c2751 Py_UCS4 fillchar; in unicode_fromformat_arg() local
2753 fillchar = zeropad?'0':' '; in unicode_fromformat_arg()
2754 if (PyUnicode_Fill(writer->buffer, writer->pos, fill, fillchar) == -1) in unicode_fromformat_arg()
10813 unicode_center_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar) in unicode_center_impl() argument
10827 return pad(self, left, marg - left, fillchar); in unicode_center_impl()
12239 unicode_ljust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar) in unicode_ljust_impl() argument
12248 return pad(self, 0, width - PyUnicode_GET_LENGTH(self), fillchar); in unicode_ljust_impl()
12854 unicode_rjust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar) in unicode_rjust_impl() argument
12863 return pad(self, width - PyUnicode_GET_LENGTH(self), 0, fillchar); in unicode_rjust_impl()
/external/python/cpython3/Doc/library/
Dstdtypes.rst1522 .. method:: str.center(width[, fillchar])
1525 specified *fillchar* (default is an ASCII space). The original string is
1759 .. method:: str.ljust(width[, fillchar])
1762 done using the specified *fillchar* (default is an ASCII space). The
1831 .. method:: str.rjust(width[, fillchar])
1834 done using the specified *fillchar* (default is an ASCII space). The