/[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 576 by ph10, Sun Nov 21 18:45:10 2010 UTC revision 579 by ph10, Wed Nov 24 17:39:25 2010 UTC
# Line 831  for (;;) Line 831  for (;;)
831    
832        /*-----------------------------------------------------------------*/        /*-----------------------------------------------------------------*/
833        case OP_EOD:        case OP_EOD:
834        if (ptr >= end_subject)        if (ptr >= end_subject)
835          {          {
836          if ((md->moptions & PCRE_PARTIAL_HARD) != 0)          if ((md->moptions & PCRE_PARTIAL_HARD) != 0)
837            could_continue = TRUE;            could_continue = TRUE;
838          else { ADD_ACTIVE(state_offset + 1, 0); }          else { ADD_ACTIVE(state_offset + 1, 0); }
# Line 2963  back the character offset. */ Line 2963  back the character offset. */
2963  #ifdef SUPPORT_UTF8  #ifdef SUPPORT_UTF8
2964  if (utf8 && (options & PCRE_NO_UTF8_CHECK) == 0)  if (utf8 && (options & PCRE_NO_UTF8_CHECK) == 0)
2965    {    {
2966    int tb;    int tb;
2967    if ((tb = _pcre_valid_utf8((uschar *)subject, length)) >= 0)    if ((tb = _pcre_valid_utf8((uschar *)subject, length)) >= 0)
2968      return (tb == length && (options & PCRE_PARTIAL_HARD) != 0)?      return (tb == length && (options & PCRE_PARTIAL_HARD) != 0)?
2969        PCRE_ERROR_SHORTUTF8 : PCRE_ERROR_BADUTF8;        PCRE_ERROR_SHORTUTF8 : PCRE_ERROR_BADUTF8;
2970    if (start_offset > 0 && start_offset < length)    if (start_offset > 0 && start_offset < length)
2971      {      {
# Line 3057  for (;;) Line 3057  for (;;)
3057    
3058      /* There are some optimizations that avoid running the match if a known      /* There are some optimizations that avoid running the match if a known
3059      starting point is not found. However, there is an option that disables      starting point is not found. However, there is an option that disables
3060      these, for testing and for ensuring that all callouts do actually occur.      these, for testing and for ensuring that all callouts do actually occur.
3061      The option can be set in the regex by (*NO_START_OPT) or passed in      The option can be set in the regex by (*NO_START_OPT) or passed in
3062      match-time options. */      match-time options. */
3063    

Legend:
Removed from v.576  
changed lines
  Added in v.579

  ViewVC Help
Powered by ViewVC 1.1.5