Lines Matching defs:ovector
89 PCRE2_SIZE *ovector;
198 ovector = pcre2_get_ovector_pointer(match_data);
199 printf("Match succeeded at offset %d\n", (int)ovector[0]);
212 printf("ovector was not big enough for all the captured substrings\n");
218 if (ovector[0] > ovector[1])
221 "From end to start the match was: %.*s\n", (int)(ovector[0] - ovector[1]),
222 (char *)(subject + ovector[1]));
234 PCRE2_SPTR substring_start = subject + ovector[2*i];
235 size_t substring_length = ovector[2*i+1] - ovector[2*i];
282 (int)(ovector[2*n+1] - ovector[2*n]), subject + ovector[2*n]);
344 PCRE2_SIZE start_offset = ovector[1]; /* Start at end of previous match */
350 if (ovector[0] == ovector[1])
352 if (ovector[0] == subject_length) break;
406 ovector[1] = start_offset + 1; /* Advance one code unit */
411 ovector[1] += 1; /* Advance by one more. */
414 while (ovector[1] < subject_length) /* character. */
416 if ((subject[ovector[1]] & 0xc0) != 0x80) break;
417 ovector[1] += 1;
435 printf("\nMatch succeeded again at offset %d\n", (int)ovector[0]);
441 printf("ovector was not big enough for all the captured substrings\n");
447 if (ovector[0] > ovector[1])
450 "From end to start the match was: %.*s\n", (int)(ovector[0] - ovector[1]),
451 (char *)(subject + ovector[1]));
463 PCRE2_SPTR substring_start = subject + ovector[2*i];
464 size_t substring_length = ovector[2*i+1] - ovector[2*i];
476 (int)(ovector[2*n+1] - ovector[2*n]), subject + ovector[2*n]);