Home | History | Annotate | Download | only in stringlib

Lines Matching defs:pos

17     Py_ssize_t pos;

28 pos = fastsearch(str, str_len, sep, sep_len, -1, FAST_SEARCH);
30 if (pos < 0) {
46 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos));
49 pos += sep_len;
50 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos));
67 Py_ssize_t pos;
78 pos = fastsearch(str, str_len, sep, sep_len, -1, FAST_RSEARCH);
80 if (pos < 0) {
96 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos));
99 pos += sep_len;
100 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos));