~clint-fewbar/ubuntu/precise/php5/php5-5.4-merge

« back to all changes in this revision

Viewing changes to ext/pcre/pcrelib/pcre_xclass.c

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-02-22 09:46:37 UTC
  • mfrom: (1.1.20) (0.3.18 sid)
  • Revision ID: package-import@ubuntu.com-20110222094637-nlu2tvb7oqgaarl0
Tags: 5.3.5-1ubuntu1
* Merge from debian/unstable. Remaining changes:
 - debian/control:
    * Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
    * Dropped libmysqlclient15-dev, build against mysql 5.1.
    * Dropped libcurl-dev not in the archive.
    * Suggest php5-suhosin rather than recommends.
    * Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions 
      already in universe.
    * Dropped libonig-dev and libqgdbm since its in universe. (will be re-added in lucid+1)
    * Dropped locales-all.
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
and semantics are as close as possible to those of the Perl 5 language.
7
7
 
8
8
                       Written by Philip Hazel
9
 
           Copyright (c) 1997-2009 University of Cambridge
 
9
           Copyright (c) 1997-2010 University of Cambridge
10
10
 
11
11
-----------------------------------------------------------------------------
12
12
Redistribution and use in source and binary forms, with or without
110
110
      break;
111
111
 
112
112
      case PT_LAMP:
113
 
      if ((prop->chartype == ucp_Lu || prop->chartype == ucp_Ll || prop->chartype == ucp_Lt) ==
114
 
          (t == XCL_PROP)) return !negated;
 
113
      if ((prop->chartype == ucp_Lu || prop->chartype == ucp_Ll ||
 
114
           prop->chartype == ucp_Lt) == (t == XCL_PROP)) return !negated;
115
115
      break;
116
116
 
117
117
      case PT_GC:
118
 
      if ((data[1] == _pcre_ucp_gentype[prop->chartype]) == (t == XCL_PROP)) return !negated;
 
118
      if ((data[1] == _pcre_ucp_gentype[prop->chartype]) == (t == XCL_PROP))
 
119
        return !negated;
119
120
      break;
120
121
 
121
122
      case PT_PC:
126
127
      if ((data[1] == prop->script) == (t == XCL_PROP)) return !negated;
127
128
      break;
128
129
 
 
130
      case PT_ALNUM:
 
131
      if ((_pcre_ucp_gentype[prop->chartype] == ucp_L ||
 
132
           _pcre_ucp_gentype[prop->chartype] == ucp_N) == (t == XCL_PROP))
 
133
        return !negated;
 
134
      break;
 
135
 
 
136
      case PT_SPACE:    /* Perl space */
 
137
      if ((_pcre_ucp_gentype[prop->chartype] == ucp_Z ||
 
138
           c == CHAR_HT || c == CHAR_NL || c == CHAR_FF || c == CHAR_CR)
 
139
             == (t == XCL_PROP))
 
140
        return !negated;
 
141
      break;
 
142
 
 
143
      case PT_PXSPACE:  /* POSIX space */
 
144
      if ((_pcre_ucp_gentype[prop->chartype] == ucp_Z ||
 
145
           c == CHAR_HT || c == CHAR_NL || c == CHAR_VT ||
 
146
           c == CHAR_FF || c == CHAR_CR) == (t == XCL_PROP))
 
147
        return !negated;
 
148
      break;
 
149
 
 
150
      case PT_WORD:
 
151
      if ((_pcre_ucp_gentype[prop->chartype] == ucp_L ||
 
152
           _pcre_ucp_gentype[prop->chartype] == ucp_N || c == CHAR_UNDERSCORE)
 
153
             == (t == XCL_PROP))
 
154
        return !negated;
 
155
      break;
 
156
 
129
157
      /* This should never occur, but compilers may mutter if there is no
130
158
      default. */
131
159