Lines Matching refs:code
9 Original API code Copyright (c) 1997-2012 University of Cambridge
10 New API code Copyright (c) 2016-2022 University of Cambridge
16 * Redistributions of source code must retain the above copyright notice,
69 code points to the compiled expression (for options)
75 negative error code on failure
79 find_text_end(const pcre2_code *code, PCRE2_SPTR *ptrptr, PCRE2_SPTR ptrend,
133 code->overall_options, code->extra_options, FALSE, NULL);
134 ptr -= 1; /* Back to last code unit of escape */
176 code points to the compiled expression
189 < 0 an error code
220 pcre2_substitute(const pcre2_code *code, PCRE2_SPTR subject, PCRE2_SIZE length,
238 BOOL utf = (code->overall_options & PCRE2_UTF) != 0;
239 BOOL ucp = (code->overall_options & PCRE2_UCP) != 0;
294 (pcre2_general_context *)code :
297 pcre2_match_data_create_from_pattern(code, gcontext);
304 (pcre2_general_context *)code :
306 int pairs = (code->top_bracket + 1 < match_data->oveccount)?
307 code->top_bracket + 1 : match_data->oveccount;
389 else rc = pcre2_match(code, subject, length, start_offset, options|goptions,
396 /* Any error other than no match returns the error code. No match when not
408 /* Advance by one code point. Then, if CRLF is a valid newline sequence and
409 we have advanced into the middle of it, advance one more code point. In
415 code->newline_convention != PCRE2_NEWLINE_CR &&
416 code->newline_convention != PCRE2_NEWLINE_LF &&
421 /* Otherwise, in UTF mode, advance past any secondary code points. */
423 else if ((code->overall_options & PCRE2_UTF) != 0)
586 if (group > code->top_bracket)
603 const uint8_t *ctypes = code->tables + ctypes_offset;
631 rc = find_text_end(code, &ptr, repend, special == CHAR_MINUS);
638 rc = find_text_end(code, &ptr, repend, TRUE);
690 rc = pcre2_substring_nametable_scan(code, name, &first, &last);
694 group = code->top_bracket + 1;
794 if (((code->tables + cbits_offset +
797 ch = (code->tables + fcc_offset)[ch];
854 code->overall_options, code->extra_options, FALSE, NULL);
875 /* Handle a literal code unit */
896 if (((code->tables + cbits_offset +
899 ch = (code->tables + fcc_offset)[ch];
912 } /* End handling a literal code unit */