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

Diff of /code/trunk/pcre_dfa_exec.c

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

revision 979 by ph10, Sun Jun 17 19:08:41 2012 UTC revision 982 by ph10, Wed Jun 20 15:15:27 2012 UTC
# Line 2798  for (;;) Line 2798  for (;;)
2798              int charcount = local_offsets[rc+1] - local_offsets[rc];              int charcount = local_offsets[rc+1] - local_offsets[rc];
2799  #ifdef SUPPORT_UTF  #ifdef SUPPORT_UTF
2800              if (utf)              if (utf)
2801                {                {
2802                const pcre_uchar *p = start_subject + local_offsets[rc];                const pcre_uchar *p = start_subject + local_offsets[rc];
2803                const pcre_uchar *pp = start_subject + local_offsets[rc+1];                const pcre_uchar *pp = start_subject + local_offsets[rc+1];
2804                while (p < pp) if (NOT_FIRSTCHAR(*p++)) charcount--;                while (p < pp) if (NOT_FIRSTCHAR(*p++)) charcount--;
2805                }                }
2806  #endif  #endif
2807              if (charcount > 0)              if (charcount > 0)
2808                {                {
# Line 2984  for (;;) Line 2984  for (;;)
2984              {              {
2985  #ifdef SUPPORT_UTF  #ifdef SUPPORT_UTF
2986              if (utf)              if (utf)
2987                {                {
2988                const pcre_uchar *p = start_subject + local_offsets[0];                const pcre_uchar *p = start_subject + local_offsets[0];
2989                const pcre_uchar *pp = start_subject + local_offsets[1];                const pcre_uchar *pp = start_subject + local_offsets[1];
2990                while (p < pp) if (NOT_FIRSTCHAR(*p++)) charcount--;                while (p < pp) if (NOT_FIRSTCHAR(*p++)) charcount--;
2991                }                }
2992  #endif  #endif
2993              ADD_NEW_DATA(-next_state_offset, 0, (charcount - 1));              ADD_NEW_DATA(-next_state_offset, 0, (charcount - 1));
2994              if (repeat_state_offset >= 0)              if (repeat_state_offset >= 0)

Legend:
Removed from v.979  
changed lines
  Added in v.982

  ViewVC Help
Powered by ViewVC 1.1.5