/[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 517 by ph10, Wed May 5 10:44:20 2010 UTC revision 518 by ph10, Tue May 18 15:47:01 2010 UTC
# Line 922  for (;;) Line 922  for (;;)
922            if (utf8) BACKCHAR(temp);            if (utf8) BACKCHAR(temp);
923  #endif  #endif
924            GETCHARTEST(d, temp);            GETCHARTEST(d, temp);
925    #ifdef SUPPORT_UCP
926              if ((md->poptions & PCRE_UCP) != 0)
927                {
928                if (d == '_') left_word = TRUE; else
929                  {
930                  int cat = UCD_CATEGORY(d);
931                  left_word = (cat == ucp_L || cat == ucp_N);
932                  }
933                }
934              else
935    #endif
936            left_word = d < 256 && (ctypes[d] & ctype_word) != 0;            left_word = d < 256 && (ctypes[d] & ctype_word) != 0;
937            }            }
938          else left_word = 0;          else left_word = FALSE;
939    
940          if (clen > 0)          if (clen > 0)
941              {
942    #ifdef SUPPORT_UCP
943              if ((md->poptions & PCRE_UCP) != 0)
944                {
945                if (c == '_') right_word = TRUE; else
946                  {
947                  int cat = UCD_CATEGORY(c);
948                  right_word = (cat == ucp_L || cat == ucp_N);
949                  }
950                }
951              else
952    #endif
953            right_word = c < 256 && (ctypes[c] & ctype_word) != 0;            right_word = c < 256 && (ctypes[c] & ctype_word) != 0;
954          else right_word = 0;            }
955            else right_word = FALSE;
956    
957          if ((left_word == right_word) == (codevalue == OP_NOT_WORD_BOUNDARY))          if ((left_word == right_word) == (codevalue == OP_NOT_WORD_BOUNDARY))
958            { ADD_ACTIVE(state_offset + 1, 0); }            { ADD_ACTIVE(state_offset + 1, 0); }

Legend:
Removed from v.517  
changed lines
  Added in v.518

  ViewVC Help
Powered by ViewVC 1.1.5