Home | History | Annotate | Download | only in stringlib

Lines Matching defs:pos

14     Py_ssize_t pos;
25 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_SEARCH);
27 if (pos < 0) {
48 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos));
51 pos += sep_len;
52 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos));
69 Py_ssize_t pos;
80 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_RSEARCH);
82 if (pos < 0) {
103 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos));
106 pos += sep_len;
107 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos));