/[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 1663 by ph10, Mon May 23 15:06:35 2016 UTC revision 1664 by ph10, Thu Aug 4 17:15:38 2016 UTC
# Line 5579  for (;; ptr++) Line 5579  for (;; ptr++)
5579  #endif  #endif
5580  #if defined SUPPORT_UTF || !defined COMPILE_PCRE8  #if defined SUPPORT_UTF || !defined COMPILE_PCRE8
5581        {        {
5582          /* For non-UCP wide characters, in a non-negative class containing \S or
5583          similar (should_flip_negation is set), all characters greater than 255
5584          must be in the class. */
5585    
5586          if (
5587    #if defined COMPILE_PCRE8
5588               utf &&
5589    #endif
5590               should_flip_negation && !negate_class && (options & PCRE_UCP) == 0)
5591            {
5592            *class_uchardata++ = XCL_RANGE;
5593            if (utf)   /* Will always be utf in the 8-bit library */
5594              {
5595              class_uchardata += PRIV(ord2utf)(0x100, class_uchardata);
5596              class_uchardata += PRIV(ord2utf)(0x10ffff, class_uchardata);
5597              }
5598            else       /* Can only happen for the 16-bit & 32-bit libraries */
5599              {
5600    #if defined COMPILE_PCRE16
5601              *class_uchardata++ = 0x100;
5602              *class_uchardata++ = 0xffffu;
5603    #elif defined COMPILE_PCRE32
5604              *class_uchardata++ = 0x100;
5605              *class_uchardata++ = 0xffffffffu;
5606    #endif
5607              }
5608            }
5609    
5610        *class_uchardata++ = XCL_END;    /* Marks the end of extra data */        *class_uchardata++ = XCL_END;    /* Marks the end of extra data */
5611        *code++ = OP_XCLASS;        *code++ = OP_XCLASS;
5612        code += LINK_SIZE;        code += LINK_SIZE;

Legend:
Removed from v.1663  
changed lines
  Added in v.1664

  ViewVC Help
Powered by ViewVC 1.1.5