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

Diff of /code/trunk/pcretest.c

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

revision 691 by ph10, Sun Sep 11 14:31:21 2011 UTC revision 734 by ph10, Wed Oct 12 16:35:29 2011 UTC
# Line 2347  while (!done) Line 2347  while (!done)
2347            unsigned char *pt = p;            unsigned char *pt = p;
2348            c = 0;            c = 0;
2349            while (isxdigit(*(++pt)))            while (isxdigit(*(++pt)))
2350              c = c * 16 + tolower(*pt) - ((isdigit(*pt))? '0' : 'W');              c = c * 16 + tolower(*pt) - ((isdigit(*pt))? '0' : 'a' - 10);
2351            if (*pt == '}')            if (*pt == '}')
2352              {              {
2353              unsigned char buff8[8];              unsigned char buff8[8];
# Line 2377  while (!done) Line 2377  while (!done)
2377          c = 0;          c = 0;
2378          while (i++ < 2 && isxdigit(*p))          while (i++ < 2 && isxdigit(*p))
2379            {            {
2380            c = c * 16 + tolower(*p) - ((isdigit(*p))? '0' : 'W');            c = c * 16 + tolower(*p) - ((isdigit(*p))? '0' : 'a' - 10);
2381            p++;            p++;
2382            }            }
2383          break;          break;

Legend:
Removed from v.691  
changed lines
  Added in v.734

  ViewVC Help
Powered by ViewVC 1.1.5