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

Diff of /code/trunk/pcre_exec.c

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

revision 354 by ph10, Mon Jul 7 16:30:33 2008 UTC revision 358 by ph10, Wed Jul 9 11:03:07 2008 UTC
# Line 168  if ((ims & PCRE_CASELESS) != 0) Line 168  if ((ims & PCRE_CASELESS) != 0)
168  #ifdef SUPPORT_UCP  #ifdef SUPPORT_UCP
169    if (md->utf8)    if (md->utf8)
170      {      {
171      USPTR endptr = eptr + length;      USPTR endptr = eptr + length;
172      while (eptr < endptr)      while (eptr < endptr)
173        {        {
174        int c, d;        int c, d;
175        GETCHARINC(c, eptr);        GETCHARINC(c, eptr);
176        GETCHARINC(d, p);        GETCHARINC(d, p);
177        if (c != d && c != UCD_OTHERCASE(d)) return FALSE;        if (c != d && c != UCD_OTHERCASE(d)) return FALSE;
178        }        }
179      }      }
180    else    else
181  #endif  #endif
182  #endif  #endif
183    
184    /* The same code works when not in UTF-8 mode and in UTF-8 mode when there    /* The same code works when not in UTF-8 mode and in UTF-8 mode when there
185    is no UCP support. */    is no UCP support. */
186    
187    while (length-- > 0)    while (length-- > 0)
188      { if (md->lcc[*p++] != md->lcc[*eptr++]) return FALSE; }      { if (md->lcc[*p++] != md->lcc[*eptr++]) return FALSE; }
189    }    }
190    
191  /* In the caseful case, we can just compare the bytes, whether or not we  /* In the caseful case, we can just compare the bytes, whether or not we
192  are in UTF-8 mode. */  are in UTF-8 mode. */
193    
194  else  else
195    { while (length-- > 0) if (*p++ != *eptr++) return FALSE; }    { while (length-- > 0) if (*p++ != *eptr++) return FALSE; }
196    

Legend:
Removed from v.354  
changed lines
  Added in v.358

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12