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

Diff of /code/trunk/pcre_compile.c

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

revision 1130 by chpe, Thu Oct 18 18:35:15 2012 UTC revision 1131 by chpe, Thu Oct 18 18:35:18 2012 UTC
# Line 2918  get_othercase_range(pcre_uint32 *cptr, p Line 2918  get_othercase_range(pcre_uint32 *cptr, p
2918    pcre_uint32 *odptr)    pcre_uint32 *odptr)
2919  {  {
2920  pcre_uint32 c, othercase, next;  pcre_uint32 c, othercase, next;
2921  int co;  unsigned int co;
2922    
2923  /* Find the first character that has an other case. If it has multiple other  /* Find the first character that has an other case. If it has multiple other
2924  cases, return its case offset value. */  cases, return its case offset value. */
# Line 2929  for (c = *cptr; c <= d; c++) Line 2929  for (c = *cptr; c <= d; c++)
2929      {      {
2930      *ocptr = c++;   /* Character that has the set */      *ocptr = c++;   /* Character that has the set */
2931      *cptr = c;      /* Rest of input range */      *cptr = c;      /* Rest of input range */
2932      return co;      return (int)co;
2933      }      }
2934    if ((othercase = UCD_OTHERCASE(c)) != c) break;    if ((othercase = UCD_OTHERCASE(c)) != c) break;
2935    }    }
# Line 3155  if (escape == 0) Line 3155  if (escape == 0)
3155  #ifdef SUPPORT_UCP  #ifdef SUPPORT_UCP
3156    if (utf && c != NOTACHAR && (options & PCRE_CASELESS) != 0)    if (utf && c != NOTACHAR && (options & PCRE_CASELESS) != 0)
3157      {      {
3158      int ocs = UCD_CASESET(next);      unsigned int ocs = UCD_CASESET(next);
3159      if (ocs > 0) return check_char_prop(c, PT_CLIST, ocs, op_code >= OP_NOT);      if (ocs > 0) return check_char_prop(c, PT_CLIST, ocs, op_code >= OP_NOT);
3160      }      }
3161  #endif  #endif

Legend:
Removed from v.1130  
changed lines
  Added in v.1131

  ViewVC Help
Powered by ViewVC 1.1.5