diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-05-18 15:47:01 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-05-18 15:47:01 +0000 |
commit | 8f8b41c565c70ab99dd21a81f71a512958f867b5 (patch) | |
tree | bb68328d748e596f734ebd085e4b3f648452ab61 /pcreposix.c | |
parent | 85b995f30cc9bf0bb04f5b3b3707a216a56b6bdf (diff) | |
download | pcre-8f8b41c565c70ab99dd21a81f71a512958f867b5.tar.gz |
Added PCRE_UCP and related stuff to make \w etc use Unicode properties.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@518 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcreposix.c')
-rw-r--r-- | pcreposix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pcreposix.c b/pcreposix.c index 5b022cc..2400d97 100644 --- a/pcreposix.c +++ b/pcreposix.c @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2009 University of Cambridge + Copyright (c) 1997-2010 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -145,6 +145,7 @@ static const int eint[] = { /* 65 */ REG_BADPAT, /* different names for subpatterns of the same number are not allowed */ REG_BADPAT, /* (*MARK) must have an argument */ + REG_INVARG, /* this version of PCRE is not compiled with PCRE_UCP support */ }; /* Table of texts corresponding to POSIX error codes */ @@ -248,6 +249,7 @@ if ((cflags & REG_NEWLINE) != 0) options |= PCRE_MULTILINE; if ((cflags & REG_DOTALL) != 0) options |= PCRE_DOTALL; if ((cflags & REG_NOSUB) != 0) options |= PCRE_NO_AUTO_CAPTURE; if ((cflags & REG_UTF8) != 0) options |= PCRE_UTF8; +if ((cflags & REG_UCP) != 0) options |= PCRE_UCP; if ((cflags & REG_UNGREEDY) != 0) options |= PCRE_UNGREEDY; preg->re_pcre = pcre_compile2(pattern, options, &errorcode, &errorptr, |