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

Diff of /code/trunk/pcre_study.c

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

revision 96 by nigel, Fri Mar 2 13:10:43 2007 UTC revision 107 by ph10, Wed Mar 7 11:02:28 2007 UTC
# Line 394  do Line 394  do
394        character with a value > 255. */        character with a value > 255. */
395    
396        case OP_NCLASS:        case OP_NCLASS:
397    #ifdef SUPPORT_UTF8
398        if (utf8)        if (utf8)
399          {          {
400          start_bits[24] |= 0xf0;              /* Bits for 0xc4 - 0xc8 */          start_bits[24] |= 0xf0;              /* Bits for 0xc4 - 0xc8 */
401          memset(start_bits+25, 0xff, 7);      /* Bits for 0xc9 - 0xff */          memset(start_bits+25, 0xff, 7);      /* Bits for 0xc9 - 0xff */
402          }          }
403    #endif
404        /* Fall through */        /* Fall through */
405    
406        case OP_CLASS:        case OP_CLASS:
# Line 411  do Line 413  do
413          value is > 127. In fact, there are only two possible starting bytes for          value is > 127. In fact, there are only two possible starting bytes for
414          characters in the range 128 - 255. */          characters in the range 128 - 255. */
415    
416    #ifdef SUPPORT_UTF8
417          if (utf8)          if (utf8)
418            {            {
419            for (c = 0; c < 16; c++) start_bits[c] |= tcode[c];            for (c = 0; c < 16; c++) start_bits[c] |= tcode[c];
# Line 428  do Line 431  do
431          /* In non-UTF-8 mode, the two bit maps are completely compatible. */          /* In non-UTF-8 mode, the two bit maps are completely compatible. */
432    
433          else          else
434    #endif
435            {            {
436            for (c = 0; c < 32; c++) start_bits[c] |= tcode[c];            for (c = 0; c < 32; c++) start_bits[c] |= tcode[c];
437            }            }

Legend:
Removed from v.96  
changed lines
  Added in v.107

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12