Lines Matching refs:mb

79 #define NLBLOCK mb             /* Block containing newline information */
366 dfa_match_block *mb, in internal_dfa_match() argument
391 PCRE2_SPTR start_subject = mb->start_subject; in internal_dfa_match()
392 PCRE2_SPTR end_subject = mb->end_subject; in internal_dfa_match()
393 PCRE2_SPTR start_code = mb->start_code; in internal_dfa_match()
396 BOOL utf = (mb->poptions & PCRE2_UTF) != 0; in internal_dfa_match()
410 ctypes = mb->tables + ctypes_offset; in internal_dfa_match()
411 lcc = mb->tables + lcc_offset; in internal_dfa_match()
412 fcc = mb->tables + fcc_offset; in internal_dfa_match()
476 if (current_subject < mb->start_used_ptr) in internal_dfa_match()
477 mb->start_used_ptr = current_subject; in internal_dfa_match()
507 if (rlevel == 1 && (mb->moptions & PCRE2_DFA_RESTART) != 0) in internal_dfa_match()
548 if (ptr > mb->last_used_ptr) mb->last_used_ptr = ptr; in internal_dfa_match()
729 ((mb->moptions & PCRE2_NOTEMPTY) == 0 && in internal_dfa_match()
730 ((mb->moptions & PCRE2_NOTEMPTY_ATSTART) == 0 || in internal_dfa_match()
731 current_subject > start_subject + mb->start_offset))) in internal_dfa_match()
744 if ((mb->moptions & PCRE2_DFA_SHORTEST) != 0) return match_count; in internal_dfa_match()
800 if (ptr == start_subject && (mb->moptions & PCRE2_NOTBOL) == 0) in internal_dfa_match()
806 if ((ptr == start_subject && (mb->moptions & PCRE2_NOTBOL) == 0) || in internal_dfa_match()
807 ((ptr != end_subject || (mb->poptions & PCRE2_ALT_CIRCUMFLEX) != 0 ) in internal_dfa_match()
816 if ((mb->moptions & PCRE2_PARTIAL_HARD) != 0) in internal_dfa_match()
843 if (ptr + 1 >= mb->end_subject && in internal_dfa_match()
844 (mb->moptions & (PCRE2_PARTIAL_HARD)) != 0 && in internal_dfa_match()
866 if (clen == 0 && (mb->moptions & PCRE2_PARTIAL_HARD) != 0) in internal_dfa_match()
868 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - mb->nllen)) in internal_dfa_match()
874 if ((mb->moptions & PCRE2_NOTEOL) == 0) in internal_dfa_match()
876 if (clen == 0 && (mb->moptions & PCRE2_PARTIAL_HARD) != 0) in internal_dfa_match()
879 ((mb->poptions & PCRE2_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr) && in internal_dfa_match()
880 (ptr == end_subject - mb->nllen) in internal_dfa_match()
883 else if (ptr + 1 >= mb->end_subject && in internal_dfa_match()
884 (mb->moptions & (PCRE2_PARTIAL_HARD|PCRE2_PARTIAL_SOFT)) != 0 && in internal_dfa_match()
889 if ((mb->moptions & PCRE2_PARTIAL_HARD) != 0) in internal_dfa_match()
901 if ((mb->moptions & PCRE2_NOTEOL) == 0) in internal_dfa_match()
903 if (clen == 0 && (mb->moptions & PCRE2_PARTIAL_HARD) != 0) in internal_dfa_match()
906 ((mb->poptions & PCRE2_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr))) in internal_dfa_match()
908 else if (ptr + 1 >= mb->end_subject && in internal_dfa_match()
909 (mb->moptions & (PCRE2_PARTIAL_HARD|PCRE2_PARTIAL_SOFT)) != 0 && in internal_dfa_match()
914 if ((mb->moptions & PCRE2_PARTIAL_HARD) != 0) in internal_dfa_match()
954 if (temp < mb->start_used_ptr) mb->start_used_ptr = temp; in internal_dfa_match()
960 if ((mb->poptions & PCRE2_UCP) != 0) in internal_dfa_match()
976 if (ptr >= mb->last_used_ptr) in internal_dfa_match()
980 if (utf) { FORWARDCHARTEST(temp, mb->end_subject); } in internal_dfa_match()
982 mb->last_used_ptr = temp; in internal_dfa_match()
985 if ((mb->poptions & PCRE2_UCP) != 0) in internal_dfa_match()
1115 if (d == OP_ANY && ptr + 1 >= mb->end_subject && in internal_dfa_match()
1116 (mb->moptions & (PCRE2_PARTIAL_HARD)) != 0 && in internal_dfa_match()
1146 if (d == OP_ANY && ptr + 1 >= mb->end_subject && in internal_dfa_match()
1147 (mb->moptions & (PCRE2_PARTIAL_HARD)) != 0 && in internal_dfa_match()
1176 if (d == OP_ANY && ptr + 1 >= mb->end_subject && in internal_dfa_match()
1177 (mb->moptions & (PCRE2_PARTIAL_HARD)) != 0 && in internal_dfa_match()
1204 if (d == OP_ANY && ptr + 1 >= mb->end_subject && in internal_dfa_match()
1205 (mb->moptions & (PCRE2_PARTIAL_HARD)) != 0 && in internal_dfa_match()
1233 if (d == OP_ANY && ptr + 1 >= mb->end_subject && in internal_dfa_match()
1234 (mb->moptions & (PCRE2_PARTIAL_HARD)) != 0 && in internal_dfa_match()
1417 if (mb->bsr_convention == PCRE2_BSR_ANYCRLF) break; in internal_dfa_match()
1686 if (mb->bsr_convention == PCRE2_BSR_ANYCRLF) break; in internal_dfa_match()
1926 if (nptr >= end_subject && (mb->moptions & PCRE2_PARTIAL_HARD) != 0) in internal_dfa_match()
1956 if (mb->bsr_convention == PCRE2_BSR_ANYCRLF) break; in internal_dfa_match()
2116 if (nptr >= end_subject && (mb->moptions & PCRE2_PARTIAL_HARD) != 0) in internal_dfa_match()
2138 if (mb->bsr_convention == PCRE2_BSR_ANYCRLF) break; in internal_dfa_match()
2148 if ((mb->moptions & PCRE2_PARTIAL_HARD) != 0) in internal_dfa_match()
2584 mb, /* static match data */ in internal_dfa_match()
2621 if (mb->callout != NULL) in internal_dfa_match()
2652 if ((rrc = (mb->callout)(&cb, mb->callout_data)) < 0) in internal_dfa_match()
2687 if (mb->recursive != NULL) in internal_dfa_match()
2703 mb, /* fixed match data */ in internal_dfa_match()
2730 uint32_t recno = (callpat == mb->start_code)? 0 : in internal_dfa_match()
2738 for (ri = mb->recursive; ri != NULL; ri = ri->prevrec) in internal_dfa_match()
2747 new_recursive.prevrec = mb->recursive; in internal_dfa_match()
2748 mb->recursive = &new_recursive; in internal_dfa_match()
2751 mb, /* fixed match data */ in internal_dfa_match()
2761 mb->recursive = new_recursive.prevrec; /* Done this recursion */ in internal_dfa_match()
2826 mb, /* fixed match data */ in internal_dfa_match()
2898 mb, /* fixed match data */ in internal_dfa_match()
2991 if (mb->callout != NULL) in internal_dfa_match()
3022 if ((rrc = (mb->callout)(&cb, mb->callout_data)) < 0) in internal_dfa_match()
3059 (mb->moptions & PCRE2_PARTIAL_HARD) != 0 /* Hard partial */ in internal_dfa_match()
3061 ((mb->moptions & PCRE2_PARTIAL_SOFT) != 0 && /* Soft partial and */ in internal_dfa_match()
3068 ptr > mb->start_used_ptr) /* Inspected non-empty string */ in internal_dfa_match()
3142 dfa_match_block *mb = &actual_match_block; in pcre2_dfa_match() local
3217 mb->callout = NULL; in pcre2_dfa_match()
3218 mb->memctl = re->memctl; in pcre2_dfa_match()
3228 mb->callout = mcontext->callout; in pcre2_dfa_match()
3229 mb->callout_data = mcontext->callout_data; in pcre2_dfa_match()
3230 mb->memctl = mcontext->memctl; in pcre2_dfa_match()
3233 mb->start_code = (PCRE2_UCHAR *)((uint8_t *)re + sizeof(pcre2_real_code)) + in pcre2_dfa_match()
3235 mb->tables = re->tables; in pcre2_dfa_match()
3236 mb->start_subject = subject; in pcre2_dfa_match()
3237 mb->end_subject = end_subject; in pcre2_dfa_match()
3238 mb->start_offset = start_offset; in pcre2_dfa_match()
3239 mb->moptions = options; in pcre2_dfa_match()
3240 mb->poptions = re->overall_options; in pcre2_dfa_match()
3244 mb->bsr_convention = re->bsr_convention; in pcre2_dfa_match()
3245 mb->nltype = NLTYPE_FIXED; in pcre2_dfa_match()
3249 mb->nllen = 1; in pcre2_dfa_match()
3250 mb->nl[0] = CHAR_CR; in pcre2_dfa_match()
3254 mb->nllen = 1; in pcre2_dfa_match()
3255 mb->nl[0] = CHAR_NL; in pcre2_dfa_match()
3259 mb->nllen = 2; in pcre2_dfa_match()
3260 mb->nl[0] = CHAR_CR; in pcre2_dfa_match()
3261 mb->nl[1] = CHAR_NL; in pcre2_dfa_match()
3265 mb->nltype = NLTYPE_ANY; in pcre2_dfa_match()
3269 mb->nltype = NLTYPE_ANYCRLF; in pcre2_dfa_match()
3338 first_cu2 = TABLE_GET(first_cu, mb->tables + fcc_offset, first_cu); in pcre2_dfa_match()
3359 req_cu2 = TABLE_GET(req_cu, mb->tables + fcc_offset, req_cu); in pcre2_dfa_match()
3406 while (t < mb->end_subject && !IS_NEWLINE(t)) in pcre2_dfa_match()
3414 while (t < mb->end_subject && !IS_NEWLINE(t)) t++; in pcre2_dfa_match()
3436 if (start_match > mb->start_subject + start_offset) in pcre2_dfa_match()
3458 (mb->nltype == NLTYPE_ANY || mb->nltype == NLTYPE_ANYCRLF) && in pcre2_dfa_match()
3488 if ((mb->moptions & (PCRE2_PARTIAL_HARD|PCRE2_PARTIAL_SOFT)) == 0) in pcre2_dfa_match()
3559 mb->start_used_ptr = start_match; in pcre2_dfa_match()
3560 mb->last_used_ptr = start_match; in pcre2_dfa_match()
3561 mb->recursive = NULL; in pcre2_dfa_match()
3564 mb, /* fixed match data */ in pcre2_dfa_match()
3565 mb->start_code, /* this subexpression's code */ in pcre2_dfa_match()
3584 match_data->leftchar = (PCRE2_SIZE)(mb->start_used_ptr - subject); in pcre2_dfa_match()
3585 match_data->rightchar = (PCRE2_SIZE)( mb->last_used_ptr - subject); in pcre2_dfa_match()
3613 (mb->nltype == NLTYPE_ANY || in pcre2_dfa_match()
3614 mb->nltype == NLTYPE_ANYCRLF || in pcre2_dfa_match()
3615 mb->nllen == 2)) in pcre2_dfa_match()