Lines Matching refs:match_data
73 pcre2_substring_copy_byname(pcre2_match_data *match_data, PCRE2_SPTR stringname, in pcre2_substring_copy_byname() argument
78 if (match_data->matchedby == PCRE2_MATCHEDBY_DFA_INTERPRETER) in pcre2_substring_copy_byname()
80 entrysize = pcre2_substring_nametable_scan(match_data->code, stringname, in pcre2_substring_copy_byname()
87 if (n < match_data->oveccount) in pcre2_substring_copy_byname()
89 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_copy_byname()
90 return pcre2_substring_copy_bynumber(match_data, n, buffer, sizeptr); in pcre2_substring_copy_byname()
121 pcre2_substring_copy_bynumber(pcre2_match_data *match_data, in pcre2_substring_copy_bynumber() argument
126 rc = pcre2_substring_length_bynumber(match_data, stringnumber, &size); in pcre2_substring_copy_bynumber()
129 memcpy(buffer, match_data->subject + match_data->ovector[stringnumber*2], in pcre2_substring_copy_bynumber()
161 pcre2_substring_get_byname(pcre2_match_data *match_data, in pcre2_substring_get_byname() argument
166 if (match_data->matchedby == PCRE2_MATCHEDBY_DFA_INTERPRETER) in pcre2_substring_get_byname()
168 entrysize = pcre2_substring_nametable_scan(match_data->code, stringname, in pcre2_substring_get_byname()
175 if (n < match_data->oveccount) in pcre2_substring_get_byname()
177 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_get_byname()
178 return pcre2_substring_get_bynumber(match_data, n, stringptr, sizeptr); in pcre2_substring_get_byname()
209 pcre2_substring_get_bynumber(pcre2_match_data *match_data, in pcre2_substring_get_bynumber() argument
215 rc = pcre2_substring_length_bynumber(match_data, stringnumber, &size); in pcre2_substring_get_bynumber()
218 (size + 1)*PCRE2_CODE_UNIT_WIDTH, (pcre2_memctl *)match_data); in pcre2_substring_get_bynumber()
221 memcpy(yield, match_data->subject + match_data->ovector[stringnumber*2], in pcre2_substring_get_bynumber()
268 pcre2_substring_length_byname(pcre2_match_data *match_data, in pcre2_substring_length_byname() argument
273 if (match_data->matchedby == PCRE2_MATCHEDBY_DFA_INTERPRETER) in pcre2_substring_length_byname()
275 entrysize = pcre2_substring_nametable_scan(match_data->code, stringname, in pcre2_substring_length_byname()
282 if (n < match_data->oveccount) in pcre2_substring_length_byname()
284 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_length_byname()
285 return pcre2_substring_length_bynumber(match_data, n, sizeptr); in pcre2_substring_length_byname()
315 pcre2_substring_length_bynumber(pcre2_match_data *match_data, in pcre2_substring_length_bynumber() argument
319 int count = match_data->rc; in pcre2_substring_length_bynumber()
327 if (match_data->matchedby != PCRE2_MATCHEDBY_DFA_INTERPRETER) in pcre2_substring_length_bynumber()
329 if (stringnumber > match_data->code->top_bracket) in pcre2_substring_length_bynumber()
331 if (stringnumber >= match_data->oveccount) in pcre2_substring_length_bynumber()
333 if (match_data->ovector[stringnumber*2] == PCRE2_UNSET) in pcre2_substring_length_bynumber()
338 if (stringnumber >= match_data->oveccount) return PCRE2_ERROR_UNAVAILABLE; in pcre2_substring_length_bynumber()
342 left = match_data->ovector[stringnumber*2]; in pcre2_substring_length_bynumber()
343 right = match_data->ovector[stringnumber*2+1]; in pcre2_substring_length_bynumber()
372 pcre2_substring_list_get(pcre2_match_data *match_data, PCRE2_UCHAR ***listptr, in pcre2_substring_list_get() argument
383 if ((count = match_data->rc) < 0) return count; /* Match failed */ in pcre2_substring_list_get()
384 if (count == 0) count = match_data->oveccount; /* Ovector too small */ in pcre2_substring_list_get()
387 ovector = match_data->ovector; in pcre2_substring_list_get()
397 memp = PRIV(memctl_malloc)(size, (pcre2_memctl *)match_data); in pcre2_substring_list_get()
422 if (size != 0) memcpy(sp, match_data->subject + ovector[i], CU2BYTES(size)); in pcre2_substring_list_get()