summaryrefslogtreecommitdiff
path: root/pcre_xclass.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-03-08 16:27:43 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-03-08 16:27:43 +0000
commit47ada1bcf8ce5ed524c685d8ed483c9d81a701fa (patch)
tree0e66d91ab5eb515567d1221949e9f41e7f3bef0b /pcre_xclass.c
parent37569cffc46bc5a250ee35aaa08619c715686c1f (diff)
downloadpcre-47ada1bcf8ce5ed524c685d8ed483c9d81a701fa.tar.gz
Fix Unicode property support in character classes for chars > 127 in non-UTF-8
mode. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@384 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_xclass.c')
-rw-r--r--pcre_xclass.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/pcre_xclass.c b/pcre_xclass.c
index cf34825..dc67c23 100644
--- a/pcre_xclass.c
+++ b/pcre_xclass.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-2008 University of Cambridge
+ Copyright (c) 1997-2009 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -39,8 +39,7 @@ POSSIBILITY OF SUCH DAMAGE.
/* This module contains an internal function that is used to match an extended
-class (one that contains characters whose values are > 255). It is used by both
-pcre_exec() and pcre_def_exec(). */
+class. It is used by both pcre_exec() and pcre_def_exec(). */
#ifdef HAVE_CONFIG_H
@@ -55,7 +54,7 @@ pcre_exec() and pcre_def_exec(). */
*************************************************/
/* This function is called to match a character against an extended class that
-might contain values > 255.
+might contain values > 255 and/or Unicode properties.
Arguments:
c the character
@@ -104,7 +103,7 @@ while ((t = *data++) != XCL_END)
#ifdef SUPPORT_UCP
else /* XCL_PROP & XCL_NOTPROP */
{
- const ucd_record * prop = GET_UCD(c);
+ const ucd_record *prop = GET_UCD(c);
switch(*data)
{