aboutsummaryrefslogtreecommitdiff
path: root/pcre.c
diff options
context:
space:
mode:
authorDmitry Mikhirev2015-02-15 15:10:15 +0300
committerDmitry Mikhirev2015-02-15 15:10:15 +0300
commite6f7aee8c27d87047857b9daf0075e90062b4ac2 (patch)
tree0c2876dce16c20a7ae938a7314dfa8c0e1d3dbfe /pcre.c
parent15f22648cd99f392ac5cab6afeec2a0e97b85c6d (diff)
downloadmake_pcre-e6f7aee8c27d87047857b9daf0075e90062b4ac2.tar.gz
make_pcre-e6f7aee8c27d87047857b9daf0075e90062b4ac2.tar.bz2
make_pcre-e6f7aee8c27d87047857b9daf0075e90062b4ac2.tar.xz
make_pcre-e6f7aee8c27d87047857b9daf0075e90062b4ac2.zip
added php-like options `A' and `D'
Diffstat (limited to 'pcre.c')
-rw-r--r--pcre.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcre.c b/pcre.c
index 3245d79..40f6c14 100644
--- a/pcre.c
+++ b/pcre.c
@@ -202,6 +202,10 @@ static int parse_comp_opt(const char flag, const char *func)
int b; /* PCRE configuration option value */
switch (flag) {
+ case 'A': /* anchored regexp */
+ return PCRE_ANCHORED;
+ case 'D': /* $ matches at the and of string only */
+ return PCRE_DOLLAR_ENDONLY;
case 'i': /* ignore case */
return PCRE_CASELESS;
case 'm': /* multi-line */