Lines Matching refs:match_data
6103 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_match() argument
6184 if (code == NULL || subject == NULL || match_data == NULL) in pcre2_match()
6254 if ((match_data->flags & PCRE2_MD_COPIED_SUBJECT) != 0) in pcre2_match()
6256 match_data->memctl.free((void *)match_data->subject, in pcre2_match()
6257 match_data->memctl.memory_data); in pcre2_match()
6258 match_data->flags &= ~PCRE2_MD_COPIED_SUBJECT; in pcre2_match()
6260 match_data->subject = NULL; in pcre2_match()
6264 match_data->startchar = 0; in pcre2_match()
6331 match_data->rc = PRIV(valid_utf)(start_match, in pcre2_match()
6332 length - (start_match - subject), &(match_data->startchar)); in pcre2_match()
6333 if (match_data->rc != 0) in pcre2_match()
6335 match_data->startchar += start_match - subject; in pcre2_match()
6336 return match_data->rc; in pcre2_match()
6346 match_data, mcontext); in pcre2_match()
6352 match_data->subject = match_data->memctl.malloc(length, in pcre2_match()
6353 match_data->memctl.memory_data); in pcre2_match()
6354 if (match_data->subject == NULL) return PCRE2_ERROR_NOMEMORY; in pcre2_match()
6355 memcpy((void *)match_data->subject, subject, length); in pcre2_match()
6356 match_data->flags |= PCRE2_MD_COPIED_SUBJECT; in pcre2_match()
6466 match_data->rc = PRIV(valid_utf)(mb->check_subject, in pcre2_match()
6467 length - (mb->check_subject - subject), &(match_data->startchar)); in pcre2_match()
6469 if (match_data->rc == 0) break; /* Valid UTF string */ in pcre2_match()
6476 match_data->startchar += mb->check_subject - subject; in pcre2_match()
6477 if (!allow_invalid || match_data->rc > 0) return match_data->rc; in pcre2_match()
6478 end_subject = subject + match_data->startchar; in pcre2_match()
7057 rc = match(start_match, mb->start_code, match_data->ovector, in pcre2_match()
7058 match_data->oveccount, re->top_bracket, frame_size, mb); in pcre2_match()
7214 &(match_data->startchar)); in pcre2_match()
7230 mb->end_subject = end_subject = start_match + match_data->startchar; in pcre2_match()
7248 match_data->code = re; in pcre2_match()
7249 match_data->mark = mb->mark; in pcre2_match()
7250 match_data->matchedby = PCRE2_MATCHEDBY_INTERPRETER; in pcre2_match()
7259 match_data->rc = ((int)mb->end_offset_top >= 2 * match_data->oveccount)? in pcre2_match()
7261 match_data->startchar = start_match - subject; in pcre2_match()
7262 match_data->leftchar = mb->start_used_ptr - subject; in pcre2_match()
7263 match_data->rightchar = ((mb->last_used_ptr > mb->end_match_ptr)? in pcre2_match()
7268 match_data->subject = match_data->memctl.malloc(length, in pcre2_match()
7269 match_data->memctl.memory_data); in pcre2_match()
7270 if (match_data->subject == NULL) return PCRE2_ERROR_NOMEMORY; in pcre2_match()
7271 memcpy((void *)match_data->subject, subject, length); in pcre2_match()
7272 match_data->flags |= PCRE2_MD_COPIED_SUBJECT; in pcre2_match()
7274 else match_data->subject = subject; in pcre2_match()
7275 return match_data->rc; in pcre2_match()
7282 match_data->mark = mb->nomatch_mark; in pcre2_match()
7286 if (rc != MATCH_NOMATCH && rc != PCRE2_ERROR_PARTIAL) match_data->rc = rc; in pcre2_match()
7295 match_data->subject = subject; in pcre2_match()
7296 match_data->ovector[0] = match_partial - subject; in pcre2_match()
7297 match_data->ovector[1] = end_subject - subject; in pcre2_match()
7298 match_data->startchar = match_partial - subject; in pcre2_match()
7299 match_data->leftchar = start_partial - subject; in pcre2_match()
7300 match_data->rightchar = end_subject - subject; in pcre2_match()
7301 match_data->rc = PCRE2_ERROR_PARTIAL; in pcre2_match()
7306 else match_data->rc = PCRE2_ERROR_NOMATCH; in pcre2_match()
7308 return match_data->rc; in pcre2_match()