Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (;;)
- {
- uint32_t options = 0; /* Normally no options */
- PCRE2_SIZE start_offset = ovector[1]; /* Start at end of previous match */
- /* If the previous match was for an empty string, we are finished if we are
- at the end of the subject. Otherwise, arrange to run another match at the
- same point to see if a non-empty match can be found. */
- if (ovector[0] == ovector[1])
- {
- if (ovector[0] == subject_length) break;
- options = PCRE2_NOTEMPTY_ATSTART | PCRE2_ANCHORED;
- }
- /* modified: */
- PCRE2_SIZE start_offset = 0;
- for (;;)
- {
- uint32_t options = 0; /* Normally no options */
- PCRE2_SIZE old_start_offset = start_offset; /* Save old start offset for later comparison */
- start_offset = ovector[1]; /* Start at end of previous match */
- /* If the previous match was for an empty string, we are finished if we are
- at the end of the subject. Otherwise, arrange to run another match at the
- same point to see if a non-empty match can be found. */
- if (old_start_offset == ovector[1])
- {
- if (ovector[1] == subject_length) break;
- options = PCRE2_NOTEMPTY_ATSTART | PCRE2_ANCHORED;
- }
Add Comment
Please, Sign In to add comment