Home
last modified time | relevance | path

Searched refs:STRINGLIB_LEN (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython2/Objects/stringlib/
Dctype.h9 return _Py_bytes_isspace(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isspace()
15 return _Py_bytes_isalpha(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isalpha()
21 return _Py_bytes_isalnum(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isalnum()
27 return _Py_bytes_isdigit(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isdigit()
33 return _Py_bytes_islower(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_islower()
39 return _Py_bytes_isupper(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isupper()
45 return _Py_bytes_istitle(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_istitle()
55 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_lower()
59 STRINGLIB_LEN(self)); in stringlib_lower()
67 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_upper()
[all …]
Dtransmogrify.h27 e = STRINGLIB_STR(self) + STRINGLIB_LEN(self); in stringlib_expandtabs()
98 return STRINGLIB_NEW(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in pad()
106 left + STRINGLIB_LEN(self) + right); in pad()
112 STRINGLIB_LEN(self)); in pad()
114 memset(STRINGLIB_STR(u) + left + STRINGLIB_LEN(self), in pad()
136 if (STRINGLIB_LEN(self) >= width && STRINGLIB_CHECK_EXACT(self)) { in stringlib_ljust()
140 return STRINGLIB_NEW(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_ljust()
147 return pad(self, 0, width - STRINGLIB_LEN(self), fillchar); in stringlib_ljust()
166 if (STRINGLIB_LEN(self) >= width && STRINGLIB_CHECK_EXACT(self)) { in stringlib_rjust()
170 return STRINGLIB_NEW(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_rjust()
[all …]
Dfind.h89 STRINGLIB_STR(str), STRINGLIB_LEN(str), in stringlib_contains_obj()
90 STRINGLIB_STR(sub), STRINGLIB_LEN(sub), 0 in stringlib_contains_obj()
Dunicodedefs.h22 #define STRINGLIB_LEN PyUnicode_GET_SIZE macro
Dstring_format.h143 output->end = STRINGLIB_LEN(output->obj) + output->ptr; in output_initialize()
627 STRINGLIB_STR(result), STRINGLIB_LEN(result)); in render_field()
920 STRINGLIB_STR(tmp), STRINGLIB_LEN(tmp)); in output_markup()
1040 SubString_init(&input, STRINGLIB_STR(self), STRINGLIB_LEN(self)); in do_string_format()
1200 STRINGLIB_LEN(self)); in formatter_parser()
1341 STRINGLIB_LEN(self), in formatter_field_name_split()
Dstringdefs.h22 #define STRINGLIB_LEN PyString_GET_SIZE macro
DREADME.txt19 Py_ssize_t STRINGLIB_LEN(PyObject*)
Dformatter.h679 Py_ssize_t len = STRINGLIB_LEN(value); in format_string_internal()
866 n_digits = STRINGLIB_LEN(tmp); in format_int_or_long_internal()
/external/python/cpython3/Objects/stringlib/
Dctype.h10 return _Py_bytes_isspace(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isspace()
16 return _Py_bytes_isalpha(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isalpha()
22 return _Py_bytes_isalnum(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isalnum()
28 return _Py_bytes_isascii(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isascii()
34 return _Py_bytes_isdigit(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isdigit()
40 return _Py_bytes_islower(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_islower()
46 return _Py_bytes_isupper(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_isupper()
52 return _Py_bytes_istitle(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in stringlib_istitle()
62 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_lower()
66 STRINGLIB_LEN(self)); in stringlib_lower()
[all …]
Dtransmogrify.h24 return STRINGLIB_NEW(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in return_self()
48 e = STRINGLIB_STR(self) + STRINGLIB_LEN(self); in stringlib_expandtabs_impl()
119 u = STRINGLIB_NEW(NULL, left + STRINGLIB_LEN(self) + right); in pad()
125 STRINGLIB_LEN(self)); in pad()
127 memset(STRINGLIB_STR(u) + left + STRINGLIB_LEN(self), in pad()
150 if (STRINGLIB_LEN(self) >= width) { in stringlib_ljust_impl()
154 return pad(self, 0, width - STRINGLIB_LEN(self), fillchar); in stringlib_ljust_impl()
174 if (STRINGLIB_LEN(self) >= width) { in stringlib_rjust_impl()
178 return pad(self, width - STRINGLIB_LEN(self), 0, fillchar); in stringlib_rjust_impl()
200 if (STRINGLIB_LEN(self) >= width) { in stringlib_center_impl()
[all …]
Dfind.h67 STRINGLIB_STR(str), STRINGLIB_LEN(str), in STRINGLIB()
68 STRINGLIB_STR(sub), STRINGLIB_LEN(sub), 0 in STRINGLIB()
Dundef.h7 #undef STRINGLIB_LEN
Ducs4lib.h20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH macro
Ducs2lib.h20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH macro
Ducs1lib.h20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH macro
Dasciilib.h20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH macro
Dunicodedefs.h22 #define STRINGLIB_LEN PyUnicode_GET_SIZE macro
Dstringdefs.h22 #define STRINGLIB_LEN PyBytes_GET_SIZE macro
DREADME.txt19 Py_ssize_t STRINGLIB_LEN(PyObject*)
Djoin.h11 Py_ssize_t seplen = STRINGLIB_LEN(sep); in STRINGLIB()
/external/python/cpython3/Objects/
Dbytearrayobject.c1091 #define STRINGLIB_LEN PyByteArray_GET_SIZE macro
/external/python/cpython2/Objects/
Dbytearrayobject.c1139 #define STRINGLIB_LEN PyByteArray_GET_SIZE macro