Lines Matching refs:match_data

215   match_block *mb, pcre2_match_data *match_data, const char *s, ...)  in display_frames()  argument
227 ((char *)P - (char *)(match_data->heapframes))/frame_size); in display_frames()
230 for (i = 0, Q = match_data->heapframes; in display_frames()
590 PCRE2_SIZE frame_size, pcre2_match_data *match_data, match_block *mb) in match() argument
642 F = match_data->heapframes; in match()
643 heapframes_size = (match_data->heapframes_size / frame_size) * frame_size; in match()
668 PCRE2_SIZE newsize = match_data->heapframes_size * 2; in match()
673 if (match_data->heapframes_size >= maxsize) return PCRE2_ERROR_HEAPLIMIT; in match()
677 new = match_data->memctl.malloc(newsize, match_data->memctl.memory_data); in match()
679 memcpy(new, match_data->heapframes, heapframes_size); in match()
681 F = (heapframe *)((char *)new + ((char *)F - (char *)match_data->heapframes)); in match()
684 match_data->memctl.free(match_data->heapframes, match_data->memctl.memory_data); in match()
685 match_data->heapframes = new; in match()
686 match_data->heapframes_size = newsize; in match()
747 Flast_group_offset = (char *)F - (char *)match_data->heapframes; in match()
789 N = (heapframe *)((char *)match_data->heapframes + offset); in match()
827 N = (heapframe *)((char *)match_data->heapframes + offset); in match()
880 match_data->ovector[0] = Fstart_match - mb->start_subject; in match()
881 match_data->ovector[1] = Feptr - mb->start_subject; in match()
885 i = 2 * ((top_bracket + 1 > match_data->oveccount)? in match()
886 match_data->oveccount : top_bracket + 1); in match()
887 memcpy(match_data->ovector + 2, Fovector, (i - 2) * sizeof(PCRE2_SIZE)); in match()
888 while (--i >= Foffset_top + 2) match_data->ovector[i] = PCRE2_UNSET; in match()
5345 N = (heapframe *)((char *)match_data->heapframes + offset); in match()
5746 N = (heapframe *)((char *)match_data->heapframes + Flast_group_offset); in match()
6312 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_match() argument
6379 if (code == NULL || subject == NULL || match_data == NULL) in pcre2_match()
6459 if ((match_data->flags & PCRE2_MD_COPIED_SUBJECT) != 0) in pcre2_match()
6461 match_data->memctl.free((void *)match_data->subject, in pcre2_match()
6462 match_data->memctl.memory_data); in pcre2_match()
6463 match_data->flags &= ~PCRE2_MD_COPIED_SUBJECT; in pcre2_match()
6465 match_data->subject = NULL; in pcre2_match()
6469 match_data->startchar = 0; in pcre2_match()
6536 match_data->rc = PRIV(valid_utf)(start_match, in pcre2_match()
6537 length - (start_match - subject), &(match_data->startchar)); in pcre2_match()
6538 if (match_data->rc != 0) in pcre2_match()
6540 match_data->startchar += start_match - subject; in pcre2_match()
6541 return match_data->rc; in pcre2_match()
6551 match_data, mcontext); in pcre2_match()
6557 match_data->subject = match_data->memctl.malloc(length, in pcre2_match()
6558 match_data->memctl.memory_data); in pcre2_match()
6559 if (match_data->subject == NULL) return PCRE2_ERROR_NOMEMORY; in pcre2_match()
6560 memcpy((void *)match_data->subject, subject, length); in pcre2_match()
6561 match_data->flags |= PCRE2_MD_COPIED_SUBJECT; in pcre2_match()
6671 match_data->rc = PRIV(valid_utf)(mb->check_subject, in pcre2_match()
6672 length - (mb->check_subject - subject), &(match_data->startchar)); in pcre2_match()
6674 if (match_data->rc == 0) break; /* Valid UTF string */ in pcre2_match()
6681 match_data->startchar += mb->check_subject - subject; in pcre2_match()
6682 if (!allow_invalid || match_data->rc > 0) return match_data->rc; in pcre2_match()
6683 end_subject = subject + match_data->startchar; in pcre2_match()
6844 if (match_data->heapframes_size < heapframes_size) in pcre2_match()
6846 match_data->memctl.free(match_data->heapframes, in pcre2_match()
6847 match_data->memctl.memory_data); in pcre2_match()
6848 match_data->heapframes = match_data->memctl.malloc(heapframes_size, in pcre2_match()
6849 match_data->memctl.memory_data); in pcre2_match()
6850 if (match_data->heapframes == NULL) in pcre2_match()
6852 match_data->heapframes_size = 0; in pcre2_match()
6855 match_data->heapframes_size = heapframes_size; in pcre2_match()
6861 memset((char *)(match_data->heapframes) + offsetof(heapframe, ovector), 0xff, in pcre2_match()
7290 match_data, mb); in pcre2_match()
7446 &(match_data->startchar)); in pcre2_match()
7462 mb->end_subject = end_subject = start_match + match_data->startchar; in pcre2_match()
7475 match_data->code = re; in pcre2_match()
7476 match_data->mark = mb->mark; in pcre2_match()
7477 match_data->matchedby = PCRE2_MATCHEDBY_INTERPRETER; in pcre2_match()
7486 match_data->rc = ((int)mb->end_offset_top >= 2 * match_data->oveccount)? in pcre2_match()
7488 match_data->startchar = start_match - subject; in pcre2_match()
7489 match_data->leftchar = mb->start_used_ptr - subject; in pcre2_match()
7490 match_data->rightchar = ((mb->last_used_ptr > mb->end_match_ptr)? in pcre2_match()
7495 match_data->subject = match_data->memctl.malloc(length, in pcre2_match()
7496 match_data->memctl.memory_data); in pcre2_match()
7497 if (match_data->subject == NULL) return PCRE2_ERROR_NOMEMORY; in pcre2_match()
7498 memcpy((void *)match_data->subject, subject, length); in pcre2_match()
7499 match_data->flags |= PCRE2_MD_COPIED_SUBJECT; in pcre2_match()
7501 else match_data->subject = subject; in pcre2_match()
7502 return match_data->rc; in pcre2_match()
7509 match_data->mark = mb->nomatch_mark; in pcre2_match()
7513 if (rc != MATCH_NOMATCH && rc != PCRE2_ERROR_PARTIAL) match_data->rc = rc; in pcre2_match()
7522 match_data->subject = subject; in pcre2_match()
7523 match_data->ovector[0] = match_partial - subject; in pcre2_match()
7524 match_data->ovector[1] = end_subject - subject; in pcre2_match()
7525 match_data->startchar = match_partial - subject; in pcre2_match()
7526 match_data->leftchar = start_partial - subject; in pcre2_match()
7527 match_data->rightchar = end_subject - subject; in pcre2_match()
7528 match_data->rc = PCRE2_ERROR_PARTIAL; in pcre2_match()
7533 else match_data->rc = PCRE2_ERROR_NOMATCH; in pcre2_match()
7535 return match_data->rc; in pcre2_match()