/[pcre]/code/trunk/pcre.h.in
ViewVC logotype

Diff of /code/trunk/pcre.h.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1189 by ph10, Tue Oct 30 16:34:17 2012 UTC revision 1210 by ph10, Wed Nov 7 16:58:13 2012 UTC
# Line 95  it is needed here for malloc. */ Line 95  it is needed here for malloc. */
95  extern "C" {  extern "C" {
96  #endif  #endif
97    
98  /* Options. Some are compile-time only, some are run-time only, and some are  /* Public options. Some are compile-time only, some are run-time only, and some
99  both, so we keep them all distinct. However, almost all the bits in the options  are both, so we keep them all distinct. However, almost all the bits in the
100  word are now used. In the long run, we may have to re-use some of the  options word are now used. In the long run, we may have to re-use some of the
101  compile-time only bits for runtime options, or vice versa. In the comments  compile-time only bits for runtime options, or vice versa. Any of the
 below, "compile", "exec", and "DFA exec" mean that the option is permitted to  
 be set for those functions; "used in" means that an option may be set only for  
 compile, but is subsequently referenced in exec and/or DFA exec. Any of the  
102  compile-time options may be inspected during studying (and therefore JIT  compile-time options may be inspected during studying (and therefore JIT
103  compiling). */  compiling).
104    
105  #define PCRE_CASELESS           0x00000001  /* Compile */  Some options for pcre_compile() change its behaviour but do not affect the
106  #define PCRE_MULTILINE          0x00000002  /* Compile */  behaviour of the execution functions. Other options are passed through to the
107  #define PCRE_DOTALL             0x00000004  /* Compile */  execution functions and affect their behaviour, with or without affecting the
108  #define PCRE_EXTENDED           0x00000008  /* Compile */  behaviour of pcre_compile().
109  #define PCRE_ANCHORED           0x00000010  /* Compile, exec, DFA exec */  
110  #define PCRE_DOLLAR_ENDONLY     0x00000020  /* Compile, used in exec, DFA exec */  Options that can be passed to pcre_compile() are tagged Cx below, with these
111  #define PCRE_EXTRA              0x00000040  /* Compile */  variants:
112  #define PCRE_NOTBOL             0x00000080  /* Exec, DFA exec */  
113  #define PCRE_NOTEOL             0x00000100  /* Exec, DFA exec */  C1   Affects compile only
114  #define PCRE_UNGREEDY           0x00000200  /* Compile */  C2   Does not affect compile; affects exec, dfa_exec
115  #define PCRE_NOTEMPTY           0x00000400  /* Exec, DFA exec */  C3   Affects compile, exec, dfa_exec
116  /* The next three are all used in compile, exec and DFA exec */  C4   Affects compile, exec, dfa_exec, study
117  #define PCRE_UTF8               0x00000800  /* Same as PCRE_UTF16 and PCRE_UTF32 */  C5   Affects compile, exec, study
118  #define PCRE_UTF16              0x00000800  /* Same as PCRE_UTF8 and PCRE_UTF32 */  
119  #define PCRE_UTF32              0x00000800  /* Same as PCRE_UTF8 and PCRE_UTF16 */  Options that can be set for pcre_exec() and/or pcre_dfa_exec() are flagged with
120  #define PCRE_NO_AUTO_CAPTURE    0x00001000  /* Compile */  E and D, respectively. They take precedence over C3, C4, and C5 settings passed
121  /* The next three are all used in compile, exec and DFA exec */  from pcre_compile(). Those that are compatible with JIT execution are flagged
122  #define PCRE_NO_UTF8_CHECK      0x00002000  /* Same as PCRE_NO_UTF16_CHECK and PCRE_NO_UTF32_CHECK */  with J. */
123  #define PCRE_NO_UTF16_CHECK     0x00002000  /* Same as PCRE_NO_UTF8_CHECK and PCRE_NO_UTF32_CHECK */  
124  #define PCRE_NO_UTF32_CHECK     0x00002000  /* Same as PCRE_NO_UTF8_CHECK and PCRE_NO_UTF16_CHECK */  #define PCRE_CASELESS           0x00000001  /* C1       */
125  #define PCRE_AUTO_CALLOUT       0x00004000  /* Compile */  #define PCRE_MULTILINE          0x00000002  /* C1       */
126  #define PCRE_PARTIAL_SOFT       0x00008000  /* Exec, DFA exec */  #define PCRE_DOTALL             0x00000004  /* C1       */
127  #define PCRE_PARTIAL            0x00008000  /* Backwards compatible synonym */  #define PCRE_EXTENDED           0x00000008  /* C1       */
128  #define PCRE_DFA_SHORTEST       0x00010000  /* DFA exec */  #define PCRE_ANCHORED           0x00000010  /* C4 E D   */
129  #define PCRE_DFA_RESTART        0x00020000  /* DFA exec */  #define PCRE_DOLLAR_ENDONLY     0x00000020  /* C2       */
130  #define PCRE_FIRSTLINE          0x00040000  /* Compile, used in exec, DFA exec */  #define PCRE_EXTRA              0x00000040  /* C1       */
131  #define PCRE_DUPNAMES           0x00080000  /* Compile */  #define PCRE_NOTBOL             0x00000080  /*    E D J */
132  #define PCRE_NEWLINE_CR         0x00100000  /* Compile, exec, DFA exec */  #define PCRE_NOTEOL             0x00000100  /*    E D J */
133  #define PCRE_NEWLINE_LF         0x00200000  /* Compile, exec, DFA exec */  #define PCRE_UNGREEDY           0x00000200  /* C1       */
134  #define PCRE_NEWLINE_CRLF       0x00300000  /* Compile, exec, DFA exec */  #define PCRE_NOTEMPTY           0x00000400  /*    E D J */
135  #define PCRE_NEWLINE_ANY        0x00400000  /* Compile, exec, DFA exec */  #define PCRE_UTF8               0x00000800  /* C4        )          */
136  #define PCRE_NEWLINE_ANYCRLF    0x00500000  /* Compile, exec, DFA exec */  #define PCRE_UTF16              0x00000800  /* C4        ) Synonyms */
137  #define PCRE_BSR_ANYCRLF        0x00800000  /* Compile, exec, DFA exec */  #define PCRE_UTF32              0x00000800  /* C4        )          */
138  #define PCRE_BSR_UNICODE        0x01000000  /* Compile, exec, DFA exec */  #define PCRE_NO_AUTO_CAPTURE    0x00001000  /* C1       */
139  #define PCRE_JAVASCRIPT_COMPAT  0x02000000  /* Compile, used in exec */  #define PCRE_NO_UTF8_CHECK      0x00002000  /* C1 E D J  )          */
140  #define PCRE_NO_START_OPTIMIZE  0x04000000  /* Compile, exec, DFA exec */  #define PCRE_NO_UTF16_CHECK     0x00002000  /* C1 E D J  ) Synonyms */
141  #define PCRE_NO_START_OPTIMISE  0x04000000  /* Synonym */  #define PCRE_NO_UTF32_CHECK     0x00002000  /* C1 E D J  )          */
142  #define PCRE_PARTIAL_HARD       0x08000000  /* Exec, DFA exec */  #define PCRE_AUTO_CALLOUT       0x00004000  /* C1       */
143  #define PCRE_NOTEMPTY_ATSTART   0x10000000  /* Exec, DFA exec */  #define PCRE_PARTIAL_SOFT       0x00008000  /*    E D J  ) Synonyms */
144  #define PCRE_UCP                0x20000000  /* Compile, used in exec, DFA exec */  #define PCRE_PARTIAL            0x00008000  /*    E D J  )          */
145    #define PCRE_DFA_SHORTEST       0x00010000  /*      D   */
146    #define PCRE_DFA_RESTART        0x00020000  /*      D   */
147    #define PCRE_FIRSTLINE          0x00040000  /* C3       */
148    #define PCRE_DUPNAMES           0x00080000  /* C1       */
149    #define PCRE_NEWLINE_CR         0x00100000  /* C3 E D   */
150    #define PCRE_NEWLINE_LF         0x00200000  /* C3 E D   */
151    #define PCRE_NEWLINE_CRLF       0x00300000  /* C3 E D   */
152    #define PCRE_NEWLINE_ANY        0x00400000  /* C3 E D   */
153    #define PCRE_NEWLINE_ANYCRLF    0x00500000  /* C3 E D   */
154    #define PCRE_BSR_ANYCRLF        0x00800000  /* C3 E D   */
155    #define PCRE_BSR_UNICODE        0x01000000  /* C3 E D   */
156    #define PCRE_JAVASCRIPT_COMPAT  0x02000000  /* C5       */
157    #define PCRE_NO_START_OPTIMIZE  0x04000000  /* C2 E D    ) Synonyms */
158    #define PCRE_NO_START_OPTIMISE  0x04000000  /* C2 E D    )          */
159    #define PCRE_PARTIAL_HARD       0x08000000  /*    E D J */
160    #define PCRE_NOTEMPTY_ATSTART   0x10000000  /*    E D J */
161    #define PCRE_UCP                0x20000000  /* C3       */
162    
163  /* Exec-time and get/set-time error codes */  /* Exec-time and get/set-time error codes */
164    

Legend:
Removed from v.1189  
changed lines
  Added in v.1210

  ViewVC Help
Powered by ViewVC 1.1.5