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

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

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

revision 805 by ph10, Wed Dec 14 16:49:20 2011 UTC revision 806 by zherczeg, Thu Dec 15 11:57:39 2011 UTC
# Line 59  library. We do not need to select pcre16 Line 59  library. We do not need to select pcre16
59  COMPILE_PCREx macro will already be appropriately set. */  COMPILE_PCREx macro will already be appropriately set. */
60    
61  #ifdef PCRE_DEBUG  #ifdef PCRE_DEBUG
62    /* pcre_printint.c should not include any headers */
63    #define PCRE_INCLUDED
64  #include "pcre_printint.c"  #include "pcre_printint.c"
65    #undef PCRE_INCLUDED
66  #endif  #endif
67    
68    
# Line 3060  if (next >= 0) switch(op_code) Line 3063  if (next >= 0) switch(op_code)
3063      }      }
3064    else    else
3065  #endif  /* SUPPORT_UTF */  #endif  /* SUPPORT_UTF */
3066    return (c != cd->fcc[next]);  /* Non-UTF-8 mode */    return (c != TABLE_GET(next, cd->fcc, next));  /* Non-UTF-8 mode */
3067    
3068    /* For OP_NOT and OP_NOTI, the data is always a single-byte character. These    /* For OP_NOT and OP_NOTI, the data is always a single-byte character. These
3069    opcodes are not used for multi-byte characters, because they are coded using    opcodes are not used for multi-byte characters, because they are coded using
# Line 3085  if (next >= 0) switch(op_code) Line 3088  if (next >= 0) switch(op_code)
3088      }      }
3089    else    else
3090  #endif  /* SUPPORT_UTF */  #endif  /* SUPPORT_UTF */
3091    return (c == cd->fcc[next]);  /* Non-UTF-8 mode */    return (c == TABLE_GET(next, cd->fcc, next));  /* Non-UTF-8 mode */
3092    
3093    /* Note that OP_DIGIT etc. are generated only when PCRE_UCP is *not* set.    /* Note that OP_DIGIT etc. are generated only when PCRE_UCP is *not* set.
3094    When it is set, \d etc. are converted into OP_(NOT_)PROP codes. */    When it is set, \d etc. are converted into OP_(NOT_)PROP codes. */
# Line 4400  for (;; ptr++) Line 4403  for (;; ptr++)
4403            classbits[c/8] |= (1 << (c&7));            classbits[c/8] |= (1 << (c&7));
4404            if ((options & PCRE_CASELESS) != 0)            if ((options & PCRE_CASELESS) != 0)
4405              {              {
4406              int uc = cd->fcc[c];           /* flip case */              int uc = cd->fcc[c]; /* flip case */
4407              classbits[uc/8] |= (1 << (uc&7));              classbits[uc/8] |= (1 << (uc&7));
4408              }              }
4409            }            }
# Line 4522  for (;; ptr++) Line 4525  for (;; ptr++)
4525          classbits[c/8] |= (1 << (c&7));          classbits[c/8] |= (1 << (c&7));
4526          if ((options & PCRE_CASELESS) != 0)          if ((options & PCRE_CASELESS) != 0)
4527            {            {
4528            c = cd->fcc[c];   /* flip case */            c = cd->fcc[c]; /* flip case */
4529            classbits[c/8] |= (1 << (c&7));            classbits[c/8] |= (1 << (c&7));
4530            }            }
4531          }          }

Legend:
Removed from v.805  
changed lines
  Added in v.806

  ViewVC Help
Powered by ViewVC 1.1.5