• Home
  • Raw
  • Download

Lines Matching refs:re

67 const pcre2_real_code *re = (pcre2_real_code *)code;  in pcre2_pattern_info()  local
110 if (re == NULL) return PCRE2_ERROR_NULL; in pcre2_pattern_info()
115 if (re->magic_number != MAGIC_NUMBER) return PCRE2_ERROR_BADMAGIC; in pcre2_pattern_info()
119 if ((re->flags & (PCRE2_CODE_UNIT_WIDTH/8)) == 0) return PCRE2_ERROR_BADMODE; in pcre2_pattern_info()
124 *((uint32_t *)where) = re->overall_options; in pcre2_pattern_info()
128 *((uint32_t *)where) = re->compile_options; in pcre2_pattern_info()
132 *((uint32_t *)where) = re->top_backref; in pcre2_pattern_info()
136 *((uint32_t *)where) = re->bsr_convention; in pcre2_pattern_info()
140 *((uint32_t *)where) = re->top_bracket; in pcre2_pattern_info()
144 *((uint32_t *)where) = re->limit_depth; in pcre2_pattern_info()
145 if (re->limit_depth == UINT32_MAX) return PCRE2_ERROR_UNSET; in pcre2_pattern_info()
149 *((uint32_t *)where) = re->extra_options; in pcre2_pattern_info()
153 *((uint32_t *)where) = ((re->flags & PCRE2_FIRSTSET) != 0)? 1 : in pcre2_pattern_info()
154 ((re->flags & PCRE2_STARTLINE) != 0)? 2 : 0; in pcre2_pattern_info()
158 *((uint32_t *)where) = ((re->flags & PCRE2_FIRSTSET) != 0)? in pcre2_pattern_info()
159 re->first_codeunit : 0; in pcre2_pattern_info()
163 *((const uint8_t **)where) = ((re->flags & PCRE2_FIRSTMAPSET) != 0)? in pcre2_pattern_info()
164 &(re->start_bitmap[0]) : NULL; in pcre2_pattern_info()
169 re->top_bracket * 2 * sizeof(PCRE2_SIZE); in pcre2_pattern_info()
173 *((uint32_t *)where) = (re->flags & PCRE2_HASBKC) != 0; in pcre2_pattern_info()
177 *((uint32_t *)where) = (re->flags & PCRE2_HASCRORLF) != 0; in pcre2_pattern_info()
181 *((uint32_t *)where) = re->limit_heap; in pcre2_pattern_info()
182 if (re->limit_heap == UINT32_MAX) return PCRE2_ERROR_UNSET; in pcre2_pattern_info()
186 *((uint32_t *)where) = (re->flags & PCRE2_JCHANGED) != 0; in pcre2_pattern_info()
191 *((size_t *)where) = (re->executable_jit != NULL)? in pcre2_pattern_info()
192 PRIV(jit_get_size)(re->executable_jit) : 0; in pcre2_pattern_info()
199 *((uint32_t *)where) = ((re->flags & PCRE2_LASTSET) != 0)? 1 : 0; in pcre2_pattern_info()
203 *((uint32_t *)where) = ((re->flags & PCRE2_LASTSET) != 0)? in pcre2_pattern_info()
204 re->last_codeunit : 0; in pcre2_pattern_info()
208 *((uint32_t *)where) = (re->flags & PCRE2_MATCH_EMPTY) != 0; in pcre2_pattern_info()
212 *((uint32_t *)where) = re->limit_match; in pcre2_pattern_info()
213 if (re->limit_match == UINT32_MAX) return PCRE2_ERROR_UNSET; in pcre2_pattern_info()
217 *((uint32_t *)where) = re->max_lookbehind; in pcre2_pattern_info()
221 *((uint32_t *)where) = re->minlength; in pcre2_pattern_info()
225 *((uint32_t *)where) = re->name_entry_size; in pcre2_pattern_info()
229 *((uint32_t *)where) = re->name_count; in pcre2_pattern_info()
233 *((PCRE2_SPTR *)where) = (PCRE2_SPTR)((char *)re + sizeof(pcre2_real_code)); in pcre2_pattern_info()
237 *((uint32_t *)where) = re->newline_convention; in pcre2_pattern_info()
241 *((size_t *)where) = re->blocksize; in pcre2_pattern_info()
271 pcre2_real_code *re = (pcre2_real_code *)code; in pcre2_callout_enumerate() local
278 if (re == NULL) return PCRE2_ERROR_NULL; in pcre2_callout_enumerate()
281 utf = (re->overall_options & PCRE2_UTF) != 0; in pcre2_callout_enumerate()
287 if (re->magic_number != MAGIC_NUMBER) return PCRE2_ERROR_BADMAGIC; in pcre2_callout_enumerate()
291 if ((re->flags & (PCRE2_CODE_UNIT_WIDTH/8)) == 0) return PCRE2_ERROR_BADMODE; in pcre2_callout_enumerate()
294 cc = (PCRE2_SPTR)((uint8_t *)re + sizeof(pcre2_real_code)) in pcre2_callout_enumerate()
295 + re->name_count * re->name_entry_size; in pcre2_callout_enumerate()