Lines Matching refs:cut
267 Py_ssize_t cut1, period1, cut2, period2, cut, period; in STRINGLIB() local
274 cut = cut1; in STRINGLIB()
278 cut = cut2; in STRINGLIB()
281 LOG("split: "); LOG_STRING(needle, cut); in STRINGLIB()
282 LOG(" + "); LOG_STRING(needle + cut, len_needle - cut); in STRINGLIB()
286 return cut; in STRINGLIB()
300 Py_ssize_t cut;
313 p->cut = STRINGLIB(_factorize)(needle, len_needle, &(p->period)); in STRINGLIB()
314 assert(p->period + p->cut <= len_needle); in STRINGLIB()
317 p->cut * STRINGLIB_SIZEOF_CHAR)); in STRINGLIB()
319 assert(p->cut <= len_needle/2); in STRINGLIB()
320 assert(p->cut < p->period); in STRINGLIB()
324 p->period = Py_MAX(p->cut, len_needle - p->cut) + 1; in STRINGLIB()
348 Py_ssize_t cut = p->cut; in STRINGLIB() local
361 Py_ssize_t i = Py_MAX(cut, memory); in STRINGLIB()
383 Py_ssize_t memory_shift = i - cut + 1; in STRINGLIB()
392 i - cut + 1); in STRINGLIB()
393 window += i - cut + 1; in STRINGLIB()
398 for (i = memory; i < cut; i++) { in STRINGLIB()
414 assert(cut < len_needle); in STRINGLIB()
415 STRINGLIB_CHAR needle_cut = needle[cut]; in STRINGLIB()
423 LOG("\n> "); LOG("%*s", window - haystack + cut, ""); in STRINGLIB()
426 if (window[cut] != needle_cut) { in STRINGLIB()
443 for (Py_ssize_t i = cut + 1; i < len_needle; i++) { in STRINGLIB()
446 i - cut + 1); in STRINGLIB()
447 window += i - cut + 1; in STRINGLIB()
451 for (Py_ssize_t i = 0; i < cut; i++) { in STRINGLIB()