/[pcre]/code/branches/pcre16/pcre_xclass.c
ViewVC logotype

Diff of /code/branches/pcre16/pcre_xclass.c

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

revision 769 by zherczeg, Wed Nov 23 17:23:20 2011 UTC revision 770 by zherczeg, Mon Nov 28 20:39:30 2011 UTC
# Line 75  additional data. */ Line 75  additional data. */
75    
76  if (c < 256)  if (c < 256)
77    {    {
78    if ((*data & XCL_MAP) != 0 && (data[1 + c/8] & (1 << (c&7))) != 0)    if ((*data & XCL_MAP) != 0 &&
79      return !negated;   /* char found */      (((pcre_uint8 *)(data + 1))[c/8] & (1 << (c&7))) != 0)
80        return !negated; /* char found */
81    }    }
82    
83  /* First skip the bit map if present. Then match against the list of Unicode  /* First skip the bit map if present. Then match against the list of Unicode
84  properties or large chars or ranges that end with a large char. We won't ever  properties or large chars or ranges that end with a large char. We won't ever
85  encounter XCL_PROP or XCL_NOTPROP when UCP support is not compiled. */  encounter XCL_PROP or XCL_NOTPROP when UCP support is not compiled. */
86    
87  if ((*data++ & XCL_MAP) != 0) data += 32;  if ((*data++ & XCL_MAP) != 0) data += 32 / sizeof(pcre_uchar);
88    
89  while ((t = *data++) != XCL_END)  while ((t = *data++) != XCL_END)
90    {    {

Legend:
Removed from v.769  
changed lines
  Added in v.770

  ViewVC Help
Powered by ViewVC 1.1.5