Lines Matching refs:pcre_uchar
83 add_list_to_class(pcre_uint8 *, pcre_uchar **, int, compile_data *,
87 compile_regex(int, pcre_uchar **, const pcre_uchar **, int *, BOOL, BOOL, int, int,
266 static const pcre_uchar sub_start_of_word[] = {
270 static const pcre_uchar sub_end_of_word[] = {
328 static const pcre_uchar string_PNd[] = {
331 static const pcre_uchar string_pNd[] = {
334 static const pcre_uchar string_PXsp[] = {
337 static const pcre_uchar string_pXsp[] = {
340 static const pcre_uchar string_PXwd[] = {
343 static const pcre_uchar string_pXwd[] = {
347 static const pcre_uchar *substitutes[] = {
362 static const pcre_uchar string_pL[] = {
365 static const pcre_uchar string_pLl[] = {
368 static const pcre_uchar string_pLu[] = {
371 static const pcre_uchar string_pXan[] = {
374 static const pcre_uchar string_h[] = {
376 static const pcre_uchar string_pXps[] = {
379 static const pcre_uchar string_PL[] = {
382 static const pcre_uchar string_PLl[] = {
385 static const pcre_uchar string_PLu[] = {
388 static const pcre_uchar string_PXan[] = {
391 static const pcre_uchar string_H[] = {
393 static const pcre_uchar string_PXps[] = {
397 static const pcre_uchar *posix_substitutes[] = {
428 #define POSIX_SUBSIZE (sizeof(posix_substitutes) / sizeof(pcre_uchar *))
917 pcre_uchar *newspace;
927 memcpy(newspace, cd->start_workspace, cd->workspace_size * sizeof(pcre_uchar));
928 cd->hwm = (pcre_uchar *)newspace + (cd->hwm - cd->start_workspace);
954 is_counted_repeat(const pcre_uchar *p)
999 check_escape(const pcre_uchar **ptrptr, pcre_uint32 *chptr, int *errorcodeptr,
1004 const pcre_uchar *ptr = *ptrptr + 1;
1036 const pcre_uchar *oldptr;
1124 const pcre_uchar *p;
1496 get_ucp(const pcre_uchar **ptrptr, BOOL *negptr, unsigned int *ptypeptr,
1499 pcre_uchar c;
1501 const pcre_uchar *ptr = *ptrptr;
1502 pcre_uchar name[32];
1519 for (i = 0; i < (int)(sizeof(name) / sizeof(pcre_uchar)) - 1; i++)
1591 static const pcre_uchar *
1592 read_repeat_counts(const pcre_uchar *p, int *minp, int *maxp, int *errorcodeptr)
1653 static const pcre_uchar*
1654 first_significant_code(const pcre_uchar *code, BOOL skipassert)
1720 find_fixedlength(pcre_uchar *code, BOOL utf, BOOL atend, compile_data *cd)
1725 register pcre_uchar *cc = code + 1 + LINK_SIZE;
1733 pcre_uchar *ce, *cs;
1734 register pcre_uchar op = *cc;
1779 cs = ce = (pcre_uchar *)cd->start_code + GET(cc, 1); /* Start subpattern */
2053 const pcre_uchar *
2054 PRIV(find_bracket)(const pcre_uchar *code, BOOL utf, int number)
2058 register pcre_uchar c = *code;
2072 if (number < 0) return (pcre_uchar *)code;
2082 if (n == number) return (pcre_uchar *)code;
2188 static const pcre_uchar *
2189 find_recurse(const pcre_uchar *code, BOOL utf)
2193 register pcre_uchar c = *code;
2343 const pcre_uchar *group;
2347 could_be_empty_branch(const pcre_uchar *code, const pcre_uchar *endcode,
2350 register pcre_uchar c;
2357 const pcre_uchar *ccode;
2380 const pcre_uchar *scode = cd->start_code + GET(code, 1);
2381 const pcre_uchar *endgroup = scode;
2390 const pcre_uchar *tcode;
2722 could_be_empty(const pcre_uchar *code, const pcre_uchar *endcode,
2747 static pcre_uchar
2748 get_repeat_base(pcre_uchar c)
2865 static const pcre_uchar *
2866 get_chr_property_list(const pcre_uchar *code, BOOL utf,
2869 pcre_uchar c = *code;
2870 pcre_uchar base;
2871 const pcre_uchar *end;
3019 end = code + 32 / sizeof(pcre_uchar);
3071 compare_opcodes(const pcre_uchar *code, BOOL utf, const compile_data *cd,
3072 const pcre_uint32 *base_list, const pcre_uchar *base_end)
3074 pcre_uchar c;
3079 const pcre_uchar *next_code;
3081 const pcre_uchar *xclass_flags;
3606 auto_possessify(pcre_uchar *code, BOOL utf, const compile_data *cd)
3608 register pcre_uchar c;
3609 const pcre_uchar *end;
3610 pcre_uchar *repeat_opcode;
3670 repeat_opcode = code + 1 + (32 / sizeof(pcre_uchar));
3869 check_posix_syntax(const pcre_uchar *ptr, const pcre_uchar **endptr)
3871 pcre_uchar terminator; /* Don't combine these lines; the Solaris cc */
3913 check_posix_name(const pcre_uchar *ptr, int len)
3960 adjust_recurse(pcre_uchar *group, int adjust, BOOL utf, compile_data *cd,
3961 pcre_uchar *save_hwm)
3963 pcre_uchar *ptr = group;
3965 while ((ptr = (pcre_uchar *)find_recurse(ptr, utf)) != NULL)
3968 pcre_uchar *hc;
4013 static pcre_uchar *
4014 auto_callout(pcre_uchar *code, const pcre_uchar *ptr, compile_data *cd)
4042 complete_callout(pcre_uchar *previous_callout, const pcre_uchar *ptr, compile_data *cd)
4139 add_to_class(pcre_uint8 *classbits, pcre_uchar **uchardptr, int options,
4226 pcre_uchar *uchardata = *uchardptr;
4299 add_list_to_class(pcre_uint8 *classbits, pcre_uchar **uchardptr, int options,
4337 add_not_list_to_class(pcre_uint8 *classbits, pcre_uchar **uchardptr,
4386 compile_branch(int *optionsptr, pcre_uchar **codeptr,
4387 const pcre_uchar **ptrptr, int *errorcodeptr,
4407 register pcre_uchar *code = *codeptr;
4408 pcre_uchar *last_code = code;
4409 pcre_uchar *orig_code = code;
4410 pcre_uchar *tempcode;
4413 const pcre_uchar *ptr = *ptrptr;
4414 const pcre_uchar *tempptr;
4415 const pcre_uchar *nestptr = NULL;
4416 pcre_uchar *previous = NULL;
4417 pcre_uchar *previous_callout = NULL;
4418 pcre_uchar *save_hwm = NULL;
4429 pcre_uchar utf_chars[6];
4440 pcre_uchar *class_uchardata;
4443 pcre_uchar *class_uchardata_base;
4501 pcre_uchar mcbuffer[8];
4860 const pcre_uchar *oldptr;
5463 memmove(code + (32 / sizeof(pcre_uchar)), code,
5468 code = class_uchardata + (32 / sizeof(pcre_uchar));
5492 code += 32 / sizeof(pcre_uchar);
5555 const pcre_uchar *p = ptr + 1;
5651 pcre_uchar *lastchar = code - 1;
5683 pcre_uchar *oldcode;
5877 pcre_uchar *bralink = NULL;
5878 pcre_uchar *brazeroptr = NULL;
6017 pcre_uchar *hc;
6018 pcre_uchar *this_hwm = cd->hwm;
6028 save_hwm = (pcre_uchar *)cd->start_workspace + save_offset;
6029 this_hwm = (pcre_uchar *)cd->start_workspace + this_offset;
6081 pcre_uchar *hc;
6082 pcre_uchar *this_hwm = cd->hwm;
6110 save_hwm = (pcre_uchar *)cd->start_workspace + save_offset;
6111 this_hwm = (pcre_uchar *)cd->start_workspace + this_offset;
6130 pcre_uchar *bra = code - offset;
6166 pcre_uchar *ketcode = code - 1 - LINK_SIZE;
6167 pcre_uchar *bracode = ketcode - GET(ketcode, 1);
6189 pcre_uchar *scode = bracode;
6314 tempcode += 1 + 32/sizeof(pcre_uchar);
6442 const pcre_uchar *name = ptr + 1;
6443 const pcre_uchar *arg = NULL;
6563 const pcre_uchar *name;
6564 pcre_uchar *slot;
6711 if ((terminator > 0 && *ptr++ != (pcre_uchar)terminator) ||
6969 if (*ptr != (pcre_uchar)terminator)
7092 if (*ptr != (pcre_uchar)terminator)
7167 pcre_uchar *cslot = slot + cd->name_entry_size;
7229 const pcre_uchar *called;
7260 if (*ptr != (pcre_uchar)terminator)
7538 pcre_uchar *tc = code;
7731 const pcre_uchar *p;
7760 if (*p != (pcre_uchar)terminator)
8039 compile_regex(int options, pcre_uchar **codeptr, const pcre_uchar **ptrptr,
8046 const pcre_uchar *ptr = *ptrptr;
8047 pcre_uchar *code = *codeptr;
8048 pcre_uchar *last_branch = code;
8049 pcre_uchar *start_bracket = code;
8050 pcre_uchar *reverse_count = NULL;
8390 is_anchored(register const pcre_uchar *code, unsigned int bracket_map,
8394 const pcre_uchar *scode = first_significant_code(
8480 is_startline(const pcre_uchar *code, unsigned int bracket_map,
8484 const pcre_uchar *scode = first_significant_code(
8600 find_firstassertedchar(const pcre_uchar *code, pcre_int32 *flags,
8612 const pcre_uchar *scode = first_significant_code(code + 1+LINK_SIZE + xl,
8614 register pcre_uchar op = *scode;
8691 add_name(compile_data *cd, const pcre_uchar *name, int length,
8695 pcre_uchar *slot = cd->name_table;
8800 pcre_uchar *code;
8801 const pcre_uchar *codestart;
8802 const pcre_uchar *ptr;
8813 pcre_uchar cworkspace[COMPILE_WORK_SIZE];
8822 ptr = (const pcre_uchar *)pattern;
9092 cd->start_pattern = (const pcre_uchar *)pattern;
9093 cd->end_pattern = (const pcre_uchar *)(pattern + STRLEN_UC((const pcre_uchar *)pattern));
9130 length += cd->namedrefcount * IMM2_SIZE * sizeof(pcre_uchar);
9137 (length + cd->names_found * cd->name_entry_size) * sizeof(pcre_uchar);
9162 re->name_table_offset = sizeof(REAL_PCRE) / sizeof(pcre_uchar);
9186 cd->name_table = (pcre_uchar *)re + re->name_table_offset;
9189 cd->hwm = (pcre_uchar *)(cd->start_workspace);
9214 ptr = (const pcre_uchar *)pattern + skipatstart;
9215 code = (pcre_uchar *)codestart;
9247 VALGRIND_MAKE_MEM_NOACCESS(code, (length - (code - codestart)) * sizeof(pcre_uchar));
9256 const pcre_uchar *groupptr = NULL;
9269 else PUT(((pcre_uchar *)codestart), offset, (int)(groupptr - codestart));
9289 "const" attribute if the cast (pcre_uchar *)codestart is used directly in the
9294 pcre_uchar *temp = (pcre_uchar *)codestart;
9308 pcre_uchar *cc = (pcre_uchar *)codestart;
9315 for (cc = (pcre_uchar *)PRIV(find_bracket)(codestart, utf, -1);
9317 cc = (pcre_uchar *)PRIV(find_bracket)(cc, utf, -1))
9322 pcre_uchar *be = cc - 1 - LINK_SIZE + GET(cc, -LINK_SIZE);
9348 *erroroffset = (int)(ptr - (const pcre_uchar *)pattern);
9458 pcre_uchar ch = re->first_char;
9467 pcre_uchar ch = re->req_char;
9489 *erroroffset = ptr - (pcre_uchar *)pattern;