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

Diff of /code/trunk/pcre_study.c

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

revision 1084 by chpe, Tue Oct 16 15:55:28 2012 UTC revision 1146 by zherczeg, Sat Oct 20 16:45:33 2012 UTC
# Line 224  for (;;) Line 224  for (;;)
224      case OP_NOTPOSPLUSI:      case OP_NOTPOSPLUSI:
225      branchlength++;      branchlength++;
226      cc += 2;      cc += 2;
227  #if defined SUPPORT_UTF && !defined COMPILE_PCRE32  #ifdef SUPPORT_UTF
228      if (utf && HAS_EXTRALEN(cc[-1])) cc += GET_EXTRALEN(cc[-1]);      if (utf && HAS_EXTRALEN(cc[-1])) cc += GET_EXTRALEN(cc[-1]);
229  #endif  #endif
230      break;      break;
# Line 245  for (;;) Line 245  for (;;)
245      case OP_NOTEXACTI:      case OP_NOTEXACTI:
246      branchlength += GET2(cc,1);      branchlength += GET2(cc,1);
247      cc += 2 + IMM2_SIZE;      cc += 2 + IMM2_SIZE;
248  #if defined SUPPORT_UTF && !defined COMPILE_PCRE32  #ifdef SUPPORT_UTF
249      if (utf && HAS_EXTRALEN(cc[-1])) cc += GET_EXTRALEN(cc[-1]);      if (utf && HAS_EXTRALEN(cc[-1])) cc += GET_EXTRALEN(cc[-1]);
250  #endif  #endif
251      break;      break;
# Line 325  for (;;) Line 325  for (;;)
325    
326  #if defined SUPPORT_UTF || !defined COMPILE_PCRE8  #if defined SUPPORT_UTF || !defined COMPILE_PCRE8
327      case OP_XCLASS:      case OP_XCLASS:
328      cc += GET(cc, 1) - PRIV(OP_lengths)[OP_CLASS];      cc += GET(cc, 1);
329        cc -= PRIV(OP_lengths)[OP_CLASS];
330      /* Fall through */      /* Fall through */
331  #endif  #endif
332    
# Line 486  for (;;) Line 487  for (;;)
487      case OP_NOTPOSQUERYI:      case OP_NOTPOSQUERYI:
488    
489      cc += PRIV(OP_lengths)[op];      cc += PRIV(OP_lengths)[op];
490  #if defined SUPPORT_UTF && !defined COMPILE_PCRE32  #ifdef SUPPORT_UTF
491      if (utf && HAS_EXTRALEN(cc[-1])) cc += GET_EXTRALEN(cc[-1]);      if (utf && HAS_EXTRALEN(cc[-1])) cc += GET_EXTRALEN(cc[-1]);
492  #endif  #endif
493      break;      break;
# Line 547  static const pcre_uchar * Line 548  static const pcre_uchar *
548  set_table_bit(pcre_uint8 *start_bits, const pcre_uchar *p, BOOL caseless,  set_table_bit(pcre_uint8 *start_bits, const pcre_uchar *p, BOOL caseless,
549    compile_data *cd, BOOL utf)    compile_data *cd, BOOL utf)
550  {  {
551  unsigned int c = *p;  pcre_uint32 c = *p;
552    
553  #ifdef COMPILE_PCRE8  #ifdef COMPILE_PCRE8
554  SET_BIT(c);  SET_BIT(c);
# Line 632  Returns:         nothing Line 633  Returns:         nothing
633  */  */
634    
635  static void  static void
636  set_type_bits(pcre_uint8 *start_bits, int cbit_type, int table_limit,  set_type_bits(pcre_uint8 *start_bits, int cbit_type, unsigned int table_limit,
637    compile_data *cd)    compile_data *cd)
638  {  {
639  register int c;  register pcre_uint32 c;
640  for (c = 0; c < table_limit; c++) start_bits[c] |= cd->cbits[c+cbit_type];  for (c = 0; c < table_limit; c++) start_bits[c] |= cd->cbits[c+cbit_type];
641  #if defined SUPPORT_UTF && defined COMPILE_PCRE8  #if defined SUPPORT_UTF && defined COMPILE_PCRE8
642  if (table_limit == 32) return;  if (table_limit == 32) return;
# Line 674  Returns:         nothing Line 675  Returns:         nothing
675  */  */
676    
677  static void  static void
678  set_nottype_bits(pcre_uint8 *start_bits, int cbit_type, int table_limit,  set_nottype_bits(pcre_uint8 *start_bits, int cbit_type, unsigned int table_limit,
679    compile_data *cd)    compile_data *cd)
680  {  {
681  register int c;  register pcre_uint32 c;
682  for (c = 0; c < table_limit; c++) start_bits[c] |= ~cd->cbits[c+cbit_type];  for (c = 0; c < table_limit; c++) start_bits[c] |= ~cd->cbits[c+cbit_type];
683  #if defined SUPPORT_UTF && defined COMPILE_PCRE8  #if defined SUPPORT_UTF && defined COMPILE_PCRE8
684  if (table_limit != 32) for (c = 24; c < 32; c++) start_bits[c] = 0xff;  if (table_limit != 32) for (c = 24; c < 32; c++) start_bits[c] = 0xff;
# Line 714  static int Line 715  static int
715  set_start_bits(const pcre_uchar *code, pcre_uint8 *start_bits, BOOL utf,  set_start_bits(const pcre_uchar *code, pcre_uint8 *start_bits, BOOL utf,
716    compile_data *cd)    compile_data *cd)
717  {  {
718  register int c;  register pcre_uint32 c;
719  int yield = SSB_DONE;  int yield = SSB_DONE;
720  #if defined SUPPORT_UTF && defined COMPILE_PCRE8  #if defined SUPPORT_UTF && defined COMPILE_PCRE8
721  int table_limit = utf? 16:32;  int table_limit = utf? 16:32;

Legend:
Removed from v.1084  
changed lines
  Added in v.1146

  ViewVC Help
Powered by ViewVC 1.1.5