/[pcre]/code/trunk/pcre_xclass.c
ViewVC logotype

Diff of /code/trunk/pcre_xclass.c

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

revision 77 by nigel, Sat Feb 24 21:40:45 2007 UTC revision 85 by nigel, Sat Feb 24 21:41:13 2007 UTC
# Line 60  Arguments: Line 60  Arguments:
60  Returns:      TRUE if character matches, else FALSE  Returns:      TRUE if character matches, else FALSE
61  */  */
62    
63  EXPORT BOOL  PCRE_EXPORT BOOL
64  _pcre_xclass(int c, const uschar *data)  _pcre_xclass(int c, const uschar *data)
65  {  {
66  int t;  int t;
# Line 102  while ((t = *data++) != XCL_END) Line 102  while ((t = *data++) != XCL_END)
102      {      {
103      int chartype, othercase;      int chartype, othercase;
104      int rqdtype = *data++;      int rqdtype = *data++;
105      int category = ucp_findchar(c, &chartype, &othercase);      int category = _pcre_ucp_findchar(c, &chartype, &othercase);
106      if (rqdtype >= 128)      if (rqdtype >= 128)
107        {        {
108        if ((rqdtype - 128 == category) == (t == XCL_PROP)) return !negated;        if ((rqdtype - 128 == category) == (t == XCL_PROP)) return !negated;

Legend:
Removed from v.77  
changed lines
  Added in v.85

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12