Lines Matching refs:escape

144 on. Zero means further processing is needed (for things like \x), or the escape
358 general substitute of a Unicode property escape (\p or \P). However, for some
457 "invalid escape sequence in character class\0"
978 positive value for a simple escape such as \n, or 0 for a data character which
982 character of the escape sequence.
993 positive => a special escape sequence
1006 int escape = 0;
1024 { if (i > 0) c = (pcre_uint32)i; else escape = -i; }
1029 else if ((i = escapes[c - 0x48]) != 0) { if (i > 0) c = (pcre_uint32)i; else escape = -i; }
1116 escape = ESC_g;
1129 escape = ESC_k;
1186 escape = -s;
1189 /* The handling of escape sequences consisting of a string of digits
1232 escape = -s;
1457 if (escape == ESC_N && ptr[1] == CHAR_LEFT_CURLY_BRACKET &&
1463 if ((options & PCRE_UCP) != 0 && escape >= ESC_D && escape <= ESC_w)
1464 escape += (ESC_DU - ESC_D);
1470 return escape;
1483 escape sequence.
3844 below handles the special case of \], but does not try to do any other escape
4406 int escape;
4941 different escape sequences that use Unicode properties \p or \P. Others
5049 escape = check_escape(&ptr, &ec, errorcodeptr, cd->bracount, options,
5052 if (escape == 0) c = ec;
5053 else if (escape == ESC_b) c = CHAR_BS; /* \b is backspace in a class */
5054 else if (escape == ESC_N) /* \N is not supported in a class */
5059 else if (escape == ESC_Q) /* Handle start of quoted string */
5068 else if (escape == ESC_E) continue; /* Ignore orphan \E */
5078 switch (escape)
5083 case ESC_wu: /* escape sequence with an appropriate \p */
5088 ptr = substitutes[escape - ESC_DU] - 1; /* Just before substitute */
5156 *class_uchardata++ = ((escape == ESC_p) != negated)?
5182 /* Fall through if the escape just defined a single character (c >= 0).
5185 escape = 0;
5246 /* The second part of a range can be a single-character escape
5311 /* Handle a single character - we can get here for a normal non-escape
7692 escape = check_escape(&ptr, &ec, errorcodeptr, cd->bracount, options, FALSE);
7695 if (escape == 0) /* The escape coded a single character */
7699 if (escape == ESC_Q) /* Handle start of quoted string */
7707 if (escape == ESC_E) continue; /* Perl ignores an orphan \E */
7712 if (firstcharflags == REQ_UNSET && escape > ESC_b && escape < ESC_Z)
7729 if (escape == ESC_g)
7772 if (escape == ESC_k)
7791 if (escape < 0)
7794 recno = -escape;
7824 else if (escape == ESC_P || escape == ESC_p)
7831 *code++ = ((escape == ESC_p) != negated)? OP_PROP : OP_NOTPROP;
7840 else if (escape == ESC_X || escape == ESC_P || escape == ESC_p)
7848 can obtain the OP value by negating the escape value in the default
7855 if ((escape == ESC_b || escape == ESC_B || escape == ESC_A) &&
7859 if (escape >= ESC_DU && escape <= ESC_wu)
7862 ptr = substitutes[escape - ESC_DU] - 1; /* Just before substitute */
7870 previous = (escape > ESC_b && escape < ESC_Z)? code : NULL;
7871 *code++ = (!utf && escape == ESC_C)? OP_ALLANY : escape;