plugins/include/regex.inc
changeset 3834 408d8ace4e7d
parent 2018 9466b2246fd3
child 3967 ceafb87d38a7
     1.1 --- a/plugins/include/regex.inc	Sun Mar 17 11:39:04 2013 -0400
     1.2 +++ b/plugins/include/regex.inc	Sun Mar 17 11:39:04 2013 -0400
     1.3 @@ -43,9 +43,13 @@
     1.4  #define PCRE_MULTILINE          0x00000002 /* Multilines (affects ^ and $ so that they match the start/end of a line rather than matching the start/end of the string). */
     1.5  #define PCRE_DOTALL             0x00000004 /* Single line (affects . so that it matches any character, even new line characters). */
     1.6  #define PCRE_EXTENDED           0x00000008 /* Pattern extension (ignore whitespace and # comments). */
     1.7 +#define PCRE_ANCHORED           0x00000010 /* Force pattern anchoring. */
     1.8 +#define PCRE_DOLLAR_ENDONLY		0x00000020 /* $ not to match newline at end. */
     1.9  #define PCRE_UNGREEDY           0x00000200 /* Invert greediness of quantifiers */
    1.10 +#define PCRE_NOTEMPTY			0x00000400 /* An empty string is not a valid match. */
    1.11  #define PCRE_UTF8               0x00000800 /* Use UTF-8 Chars */
    1.12  #define PCRE_NO_UTF8_CHECK      0x00002000 /* Do not check the pattern for UTF-8 validity (only relevant if PCRE_UTF8 is set) */
    1.13 +#define PCRE_UCP				0x20000000 /* Use Unicode properties for \ed, \ew, etc. */
    1.14  
    1.15  
    1.16  /**
    1.17 @@ -76,7 +80,16 @@
    1.18  	REGEX_ERROR_DFA_RECURSE = -20,
    1.19  	REGEX_ERROR_RECURSIONLIMIT = -21,
    1.20  	REGEX_ERROR_NULLWSLIMIT = -22,  	/* No longer actually used */
    1.21 -	REGEX_ERROR_BADNEWLINE = -23
    1.22 +	REGEX_ERROR_BADNEWLINE = -23,
    1.23 +	REGEX_ERROR_BADOFFSET = -24,
    1.24 +	REGEX_ERROR_SHORTUTF8 = -25,
    1.25 +	REGEX_ERROR_RECURSELOOP = -26,
    1.26 +	REGEX_ERROR_JIT_STACKLIMIT = -27,
    1.27 +	REGEX_ERROR_BADMODE = -28,
    1.28 +	REGEX_ERROR_BADENDIANNESS = -29,
    1.29 +	REGEX_ERROR_DFA_BADRESTART = -30,
    1.30 +	REGEX_ERROR_JIT_BADOPTION = -31,
    1.31 +	REGEX_ERROR_BADLENGTH = -32,
    1.32  };
    1.33  
    1.34  /**