Lines Matching refs:sub
513 const char *sub;
526 sub = subbuf.buf;
530 sub = &byte;
541 *sub);
545 *sub);
553 sub, sub_len, start, end);
557 sub, sub_len, start, end);
567 "B.find(sub[, start[, end]]) -> int\n\
569 Return the lowest index in B where subsection sub is found,\n\
570 such that sub is contained within B[start,end]. Optional\n\
585 "B.index(sub[, start[, end]]) -> int\n\
587 Return the lowest index in B where subsection sub is found,\n\
588 such that sub is contained within B[start,end]. Optional\n\
608 "B.rfind(sub[, start[, end]]) -> int\n\
610 Return the highest index in B where subsection sub is found,\n\
611 such that sub is contained within B[start,end]. Optional\n\
626 "B.rindex(sub[, start[, end]]) -> int\n\
628 Return the highest index in B where subsection sub is found,\n\
629 such that sub is contained within B[start,end]. Optional\n\
649 "B.count(sub[, start[, end]]) -> int\n\
651 Return the number of non-overlapping occurrences of subsection sub in\n\
659 const char *sub;
675 sub = vsub.buf;
679 sub = &byte;
686 stringlib_count(str + start, end - start, sub, sub_len, PY_SSIZE_T_MAX)
728 const char *sub;
732 sub = PyBytes_AS_STRING(substr);
738 sub = sub_view.buf;
758 if (memcmp(str + start, sub, slen) != 0)