/[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 961 by ph10, Fri Apr 20 11:49:13 2012 UTC revision 962 by ph10, Fri Apr 20 17:28:23 2012 UTC
# Line 3132  if (next >= 0) switch(op_code) Line 3132  if (next >= 0) switch(op_code)
3132    When it is set, \d etc. are converted into OP_(NOT_)PROP codes. */    When it is set, \d etc. are converted into OP_(NOT_)PROP codes. */
3133    
3134    case OP_DIGIT:    case OP_DIGIT:
3135    return next > 127 || (cd->ctypes[next] & ctype_digit) == 0;    return next > 255 || (cd->ctypes[next] & ctype_digit) == 0;
3136    
3137    case OP_NOT_DIGIT:    case OP_NOT_DIGIT:
3138    return next <= 127 && (cd->ctypes[next] & ctype_digit) != 0;    return next <= 255 && (cd->ctypes[next] & ctype_digit) != 0;
3139    
3140    case OP_WHITESPACE:    case OP_WHITESPACE:
3141    return next > 127 || (cd->ctypes[next] & ctype_space) == 0;    return next > 255 || (cd->ctypes[next] & ctype_space) == 0;
3142    
3143    case OP_NOT_WHITESPACE:    case OP_NOT_WHITESPACE:
3144    return next <= 127 && (cd->ctypes[next] & ctype_space) != 0;    return next <= 255 && (cd->ctypes[next] & ctype_space) != 0;
3145    
3146    case OP_WORDCHAR:    case OP_WORDCHAR:
3147    return next > 127 || (cd->ctypes[next] & ctype_word) == 0;    return next > 255 || (cd->ctypes[next] & ctype_word) == 0;
3148    
3149    case OP_NOT_WORDCHAR:    case OP_NOT_WORDCHAR:
3150    return next <= 127 && (cd->ctypes[next] & ctype_word) != 0;    return next <= 255 && (cd->ctypes[next] & ctype_word) != 0;
3151    
3152    case OP_HSPACE:    case OP_HSPACE:
3153    case OP_NOT_HSPACE:    case OP_NOT_HSPACE:
# Line 3225  switch(op_code) Line 3225  switch(op_code)
3225    switch(-next)    switch(-next)
3226      {      {
3227      case ESC_d:      case ESC_d:
3228      return c > 127 || (cd->ctypes[c] & ctype_digit) == 0;      return c > 255 || (cd->ctypes[c] & ctype_digit) == 0;
3229    
3230      case ESC_D:      case ESC_D:
3231      return c <= 127 && (cd->ctypes[c] & ctype_digit) != 0;      return c <= 255 && (cd->ctypes[c] & ctype_digit) != 0;
3232    
3233      case ESC_s:      case ESC_s:
3234      return c > 127 || (cd->ctypes[c] & ctype_space) == 0;      return c > 255 || (cd->ctypes[c] & ctype_space) == 0;
3235    
3236      case ESC_S:      case ESC_S:
3237      return c <= 127 && (cd->ctypes[c] & ctype_space) != 0;      return c <= 255 && (cd->ctypes[c] & ctype_space) != 0;
3238    
3239      case ESC_w:      case ESC_w:
3240      return c > 127 || (cd->ctypes[c] & ctype_word) == 0;      return c > 255 || (cd->ctypes[c] & ctype_word) == 0;
3241    
3242      case ESC_W:      case ESC_W:
3243      return c <= 127 && (cd->ctypes[c] & ctype_word) != 0;      return c <= 255 && (cd->ctypes[c] & ctype_word) != 0;
3244    
3245      case ESC_h:      case ESC_h:
3246      case ESC_H:      case ESC_H:

Legend:
Removed from v.961  
changed lines
  Added in v.962

  ViewVC Help
Powered by ViewVC 1.1.5