/[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 365 by ph10, Fri Jul 11 17:06:55 2008 UTC revision 371 by ph10, Mon Aug 25 18:28:05 2008 UTC
# Line 2736  for (;;) Line 2736  for (;;)
2736        USPTR t = current_subject;        USPTR t = current_subject;
2737  #ifdef SUPPORT_UTF8  #ifdef SUPPORT_UTF8
2738        if (utf8)        if (utf8)
2739          {          {
2740          while (t < md->end_subject && !IS_NEWLINE(t))          while (t < md->end_subject && !IS_NEWLINE(t))
2741            {            {
2742            t++;            t++;
2743            while (t < end_subject && (*t & 0xc0) == 0x80) t++;            while (t < end_subject && (*t & 0xc0) == 0x80) t++;
2744            }            }
2745          }          }
2746        else        else
2747  #endif  #endif
2748        while (t < md->end_subject && !IS_NEWLINE(t)) t++;        while (t < md->end_subject && !IS_NEWLINE(t)) t++;
2749        end_subject = t;        end_subject = t;
2750        }        }
# Line 2771  for (;;) Line 2771  for (;;)
2771            {            {
2772            while (current_subject < end_subject && !WAS_NEWLINE(current_subject))            while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
2773              {              {
2774              current_subject++;              current_subject++;
2775              while(current_subject < end_subject &&              while(current_subject < end_subject &&
2776                    (*current_subject & 0xc0) == 0x80)                    (*current_subject & 0xc0) == 0x80)
2777                current_subject++;                current_subject++;
2778              }              }
2779            }            }
2780          else          else
2781  #endif  #endif
2782          while (current_subject < end_subject && !WAS_NEWLINE(current_subject))          while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
2783            current_subject++;            current_subject++;
2784    
2785          /* If we have just passed a CR and the newline option is ANY or          /* If we have just passed a CR and the newline option is ANY or
2786          ANYCRLF, and we are now at a LF, advance the match position by one more          ANYCRLF, and we are now at a LF, advance the match position by one more
2787          character. */          character. */

Legend:
Removed from v.365  
changed lines
  Added in v.371

  ViewVC Help
Powered by ViewVC 1.1.5