Home
last modified time | relevance | path

Searched refs:STRINGLIB_NEW (Results 1 - 12 of 12) sorted by relevance

/third_party/python/Objects/stringlib/
H A Dpartition.h34 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, str_len)); in partition()
35 PyTuple_SET_ITEM(out, 1, STRINGLIB_NEW(NULL, 0)); in partition()
36 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(NULL, 0)); in partition()
55 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos)); in partition()
59 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in partition()
91 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(NULL, 0)); in rpartition()
92 PyTuple_SET_ITEM(out, 1, STRINGLIB_NEW(NULL, 0)); in rpartition()
93 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str, str_len)); in rpartition()
112 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos)); in rpartition()
116 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(st in rpartition()
[all...]
H A Dctype.h62 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_lower()
74 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_upper()
86 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_title()
98 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_capitalize()
110 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_swapcase()
H A Dtransmogrify.h24 return STRINGLIB_NEW(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in return_self()
75 u = STRINGLIB_NEW(NULL, i + j); in stringlib_expandtabs_impl()
119 u = STRINGLIB_NEW(NULL, left + STRINGLIB_LEN(self) + right); in pad()
310 result = STRINGLIB_NEW(NULL, result_len); in stringlib_replace_interleave()
370 result = STRINGLIB_NEW(NULL, result_len); in stringlib_replace_delete_single_character()
419 result = STRINGLIB_NEW(NULL, result_len); in stringlib_replace_delete_substring()
467 result = STRINGLIB_NEW(NULL, self_len); in stringlib_replace_single_character_in_place()
517 result = STRINGLIB_NEW(NULL, self_len); in stringlib_replace_substring_in_place()
574 result = STRINGLIB_NEW(NULL, result_len); in stringlib_replace_single_character()
641 result = STRINGLIB_NEW(NUL in stringlib_replace_substring()
[all...]
H A Djoin.h33 return STRINGLIB_NEW(NULL, 0); in bytes_join()
111 res = STRINGLIB_NEW(NULL, sz); in bytes_join()
H A Dundef.h8 #undef STRINGLIB_NEW macro
H A Ducs4lib.h20 #define STRINGLIB_NEW _PyUnicode_FromUCS4 macro
H A Ducs2lib.h20 #define STRINGLIB_NEW _PyUnicode_FromUCS2 macro
H A Ducs1lib.h20 #define STRINGLIB_NEW _PyUnicode_FromUCS1 macro
H A Dasciilib.h20 #define STRINGLIB_NEW(STR,LEN) _PyUnicode_FromASCII((const char*)(STR),(LEN)) macro
H A Dstringdefs.h22 #define STRINGLIB_NEW PyBytes_FromStringAndSize macro
H A Dunicodedefs.h22 #define STRINGLIB_NEW PyUnicode_FromUnicode macro
H A Dsplit.h21 sub = STRINGLIB_NEW((data) + (left), \
33 sub = STRINGLIB_NEW((data) + (left), \

Completed in 4 milliseconds