Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/stringlib/clinic/
Dtransmogrify.h.h64 stringlib_ljust_impl(PyObject *self, Py_ssize_t width, char fillchar);
71 char fillchar = ' '; in stringlib_ljust() local
97 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_ljust()
100 fillchar = PyByteArray_AS_STRING(args[1])[0]; in stringlib_ljust()
107 return_value = stringlib_ljust_impl(self, width, fillchar); in stringlib_ljust()
125 stringlib_rjust_impl(PyObject *self, Py_ssize_t width, char fillchar);
132 char fillchar = ' '; in stringlib_rjust() local
158 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_rjust()
161 fillchar = PyByteArray_AS_STRING(args[1])[0]; in stringlib_rjust()
168 return_value = stringlib_rjust_impl(self, width, fillchar); in stringlib_rjust()
[all …]
/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
109 if (!convert_uc(args[1], &fillchar)) { in unicode_center()
113 return_value = unicode_center_impl(self, width, fillchar); in unicode_center()
521 unicode_ljust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
528 Py_UCS4 fillchar = ' '; in unicode_ljust() local
553 if (!convert_uc(args[1], &fillchar)) { in unicode_ljust()
557 return_value = unicode_ljust_impl(self, width, fillchar); in unicode_ljust()
840 unicode_rjust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
847 Py_UCS4 fillchar = ' '; in unicode_rjust() local
[all …]
/external/python/cpython3/Objects/stringlib/
Dtransmogrify.h147 stringlib_ljust_impl(PyObject *self, Py_ssize_t width, char fillchar) in stringlib_ljust_impl() argument
154 return pad(self, 0, width - STRINGLIB_LEN(self), fillchar); in stringlib_ljust_impl()
171 stringlib_rjust_impl(PyObject *self, Py_ssize_t width, char fillchar) in stringlib_rjust_impl() argument
178 return pad(self, width - STRINGLIB_LEN(self), 0, fillchar); in stringlib_rjust_impl()
195 stringlib_center_impl(PyObject *self, Py_ssize_t width, char fillchar) in stringlib_center_impl() argument
207 return pad(self, left, marg - left, fillchar); in stringlib_center_impl()
/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.c2890 Py_UCS4 fillchar; in unicode_fromformat_arg() local
2892 fillchar = zeropad?'0':' '; in unicode_fromformat_arg()
2893 if (PyUnicode_Fill(writer->buffer, writer->pos, fill, fillchar) == -1) in unicode_fromformat_arg()
11039 unicode_center_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar) in unicode_center_impl() argument
11053 return pad(self, left, marg - left, fillchar); in unicode_center_impl()
12513 unicode_ljust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar) in unicode_ljust_impl() argument
12522 return pad(self, 0, width - PyUnicode_GET_LENGTH(self), fillchar); in unicode_ljust_impl()
13184 unicode_rjust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar) in unicode_rjust_impl() argument
13193 return pad(self, width - PyUnicode_GET_LENGTH(self), 0, fillchar); in unicode_rjust_impl()
/external/python/cpython3/Doc/library/
Dstdtypes.rst1535 .. method:: str.center(width[, fillchar])
1538 specified *fillchar* (default is an ASCII space). The original string is
1804 .. method:: str.ljust(width[, fillchar])
1807 done using the specified *fillchar* (default is an ASCII space). The
1912 .. method:: str.rjust(width[, fillchar])
1915 done using the specified *fillchar* (default is an ASCII space). The