Lines Matching refs:endpos
313 Py_ssize_t startpos, endpos, newpos; in STRINGLIB() local
320 endpos = startpos+1; in STRINGLIB()
322 while ((endpos < size) && Py_UNICODE_IS_SURROGATE(data[endpos])) in STRINGLIB()
323 endpos++; in STRINGLIB()
326 writer.overallocate = (endpos < size); in STRINGLIB()
331 memset(p, '?', endpos - startpos); in STRINGLIB()
332 p += (endpos - startpos); in STRINGLIB()
335 i += (endpos - startpos - 1); in STRINGLIB()
339 for (k=startpos; k<endpos; k++) { in STRINGLIB()
345 i += (endpos - startpos - 1); in STRINGLIB()
350 writer.min_size -= max_char_size * (endpos - startpos); in STRINGLIB()
352 unicode, startpos, endpos); in STRINGLIB()
355 i += (endpos - startpos - 1); in STRINGLIB()
360 writer.min_size -= max_char_size * (endpos - startpos); in STRINGLIB()
362 unicode, startpos, endpos); in STRINGLIB()
365 i += (endpos - startpos - 1); in STRINGLIB()
369 for (k=startpos; k<endpos; k++) { in STRINGLIB()
375 if (k >= endpos) { in STRINGLIB()
376 i += (endpos - startpos - 1); in STRINGLIB()
380 assert(startpos < endpos); in STRINGLIB()
385 unicode, &exc, startpos, endpos, &newpos); in STRINGLIB()
404 startpos, endpos, in STRINGLIB()