Lines Matching full:uschar
234 static const uschar posix_name_lengths[] = {
269 static const uschar *substitutes[] = {
270 (uschar *)"\\P{Nd}", /* \D */
271 (uschar *)"\\p{Nd}", /* \d */
272 (uschar *)"\\P{Xsp}", /* \S */ /* NOTE: Xsp is Perl space */
273 (uschar *)"\\p{Xsp}", /* \s */
274 (uschar *)"\\P{Xwd}", /* \W */
275 (uschar *)"\\p{Xwd}" /* \w */
278 static const uschar *posix_substitutes[] = {
279 (uschar *)"\\p{L}", /* alpha */
280 (uschar *)"\\p{Ll}", /* lower */
281 (uschar *)"\\p{Lu}", /* upper */
282 (uschar *)"\\p{Xan}", /* alnum */
284 (uschar *)"\\h", /* blank */
286 (uschar *)"\\p{Nd}", /* digit */
290 (uschar *)"\\p{Xps}", /* space */ /* NOTE: Xps is POSIX space */
291 (uschar *)"\\p{Xwd}", /* word */
294 (uschar *)"\\P{L}", /* ^alpha */
295 (uschar *)"\\P{Ll}", /* ^lower */
296 (uschar *)"\\P{Lu}", /* ^upper */
297 (uschar *)"\\P{Xan}", /* ^alnum */
299 (uschar *)"\\H", /* ^blank */
301 (uschar *)"\\P{Nd}", /* ^digit */
305 (uschar *)"\\P{Xps}", /* ^space */ /* NOTE: Xps is POSIX space */
306 (uschar *)"\\P{Xwd}", /* ^word */
309 #define POSIX_SUBSIZE (sizeof(posix_substitutes)/sizeof(uschar *))
548 compile_regex(int, int, uschar **, const uschar **, int *, BOOL, BOOL, int,
604 check_escape(const uschar **ptrptr, int *errorcodeptr, int bracount,
608 const uschar *ptr = *ptrptr + 1;
635 const uschar *oldptr;
677 const uschar *p;
797 const uschar *pt = ptr + 2;
926 get_ucp(const uschar **ptrptr, BOOL *negptr, int *dptr, int *errorcodeptr)
929 const uschar *ptr = *ptrptr;
1015 is_counted_repeat(const uschar *p)
1051 static const uschar *
1052 read_repeat_counts(const uschar *p, int *minp, int *maxp, int *errorcodeptr)
1137 find_parens_sub(uschar **ptrptr, compile_data *cd, const uschar *name, int lorn,
1140 uschar *ptr = *ptrptr;
1207 const uschar *thisname;
1370 find_parens(compile_data *cd, const uschar *name, int lorn, BOOL xmode,
1373 uschar *ptr = (uschar *)cd->start_pattern;
1414 static const uschar*
1415 first_significant_code(const uschar *code, int *options, int optbit,
1488 find_fixedlength(uschar *code, int options, BOOL atend, compile_data *cd)
1493 register uschar *cc = code + 1 + LINK_SIZE;
1501 uschar *ce, *cs;
1538 cs = ce = (uschar *)cd->start_code + GET(cc, 1); /* Start subpattern */
1695 const uschar *
1696 _pcre_find_bracket(const uschar *code, BOOL utf8, int number)
1713 if (number < 0) return (uschar *)code;
1722 if (n == number) return (uschar *)code;
1817 static const uschar *
1818 find_recurse(const uschar *code, BOOL utf8)
1931 could_be_empty_branch(const uschar *code, const uschar *endcode, BOOL utf8,
1939 const uschar *ccode;
1969 const uschar *scode = cd->start_code + GET(code, 1);
2183 could_be_empty(const uschar *code, const uschar *endcode, branch_chain *bcptr,
2229 check_posix_syntax(const uschar *ptr, const uschar **endptr)
2266 check_posix_name(const uschar *ptr, int len)
2313 adjust_recurse(uschar *group, int adjust, BOOL utf8, compile_data *cd,
2314 uschar *save_hwm)
2316 uschar *ptr = group;
2318 while ((ptr = (uschar *)find_recurse(ptr, utf8)) != NULL)
2321 uschar *hc;
2366 static uschar *
2367 auto_callout(uschar *code, const uschar *ptr, compile_data *cd)
2395 complete_callout(uschar *previous_callout, const uschar *ptr, compile_data *cd)
2533 check_auto_possessive(const uschar *previous, BOOL utf8, const uschar *ptr,
2957 compile_branch(int *optionsptr, uschar **codeptr, const uschar **ptrptr,
2972 register uschar *code = *codeptr;
2973 uschar *last_code = code;
2974 uschar *orig_code = code;
2975 uschar *tempcode;
2978 const uschar *ptr = *ptrptr;
2979 const uschar *tempptr;
2980 const uschar *nestptr = NULL;
2981 uschar *previous = NULL;
2982 uschar *previous_callout = NULL;
2983 uschar *save_hwm = NULL;
2984 uschar classbits[32];
2989 uschar *class_utf8data;
2990 uschar *class_utf8data_base;
2991 uschar utf8_char[6];
2994 uschar *utf8_char = NULL;
3045 uschar mcbuffer[8];
3342 memset(classbits, 0, 32 * sizeof(uschar));
3356 const uschar *oldptr;
3402 register const uschar *cbits = cd->cbits;
3403 uschar pbits[32];
3458 32 * sizeof(uschar));
3520 register const uschar *cbits = cd->cbits;
4174 uschar *lastchar = code - 1;
4236 uschar *oldcode;
4454 uschar *bralink = NULL;
4472 register uschar *ket = previous;
4587 uschar *hc;
4588 uschar *this_hwm = cd->hwm;
4639 uschar *hc;
4640 uschar *this_hwm = cd->hwm;
4673 uschar *bra = code - offset;
4695 uschar *ketcode = code - ketoffset;
4696 uschar *bracode = ketcode - GET(ketcode, 1);
4700 uschar *scode = bracode;
4825 const uschar *name = ptr + 1;
4826 const uschar *arg = NULL;
4919 const uschar *name;
4920 uschar *slot;
5342 uschar *cslot = cd->name_table;
5398 const uschar *temp;
5480 const uschar *called;
5774 uschar *tc = code;
5949 const uschar *p;
6225 compile_regex(int options, int oldims, uschar **codeptr, const uschar **ptrptr,
6230 const uschar *ptr = *ptrptr;
6231 uschar *code = *codeptr;
6232 uschar *last_branch = code;
6233 uschar *start_bracket = code;
6234 uschar *reverse_count = NULL;
6557 is_anchored(register const uschar *code, int *options, unsigned int bracket_map,
6561 const uschar *scode = first_significant_code(code + _pcre_OP_lengths[*code],
6633 is_startline(const uschar *code, unsigned int bracket_map,
6637 const uschar *scode = first_significant_code(code + _pcre_OP_lengths[*code],
6735 find_firstassertedchar(const uschar *code, int *options, BOOL inassert)
6740 const uschar *scode =
6826 uschar *code;
6827 const uschar *codestart;
6828 const uschar *ptr;
6838 uschar cworkspace[COMPILE_WORK_SIZE];
6842 ptr = (const uschar *)pattern;
7028 cd->start_pattern = (const uschar *)pattern;
7029 cd->end_pattern = (const uschar *)(pattern + strlen(pattern));
7102 cd->name_table = (uschar *)re + re->name_table_offset;
7115 ptr = (const uschar *)pattern + skipatstart;
7116 code = (uschar *)codestart;
7144 const uschar *groupptr;
7150 else PUT(((uschar *)codestart), offset, (int)(groupptr - codestart));
7168 uschar *cc = (uschar *)codestart;
7175 for (cc = (uschar *)_pcre_find_bracket(codestart, utf8, -1);
7177 cc = (uschar *)_pcre_find_bracket(cc, utf8, -1))
7182 uschar *be = cc - 1 - LINK_SIZE + GET(cc, -LINK_SIZE);
7205 *erroroffset = (int)(ptr - (const uschar *)pattern);
7292 *erroroffset = ptr - (uschar *)pattern;