Lines Matching defs:pos
19 Py_ssize_t pos;
30 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_SEARCH);
32 if (pos < 0) {
55 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos));
58 pos += sep_len;
59 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos));
76 Py_ssize_t pos;
87 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_RSEARCH);
89 if (pos < 0) {
112 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos));
115 pos += sep_len;
116 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos));