/[pcre]/code/branches/pcre16/pcre_internal.h
ViewVC logotype

Diff of /code/branches/pcre16/pcre_internal.h

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

revision 782 by zherczeg, Sat Dec 3 23:58:37 2011 UTC revision 785 by zherczeg, Mon Dec 5 20:12:24 2011 UTC
# Line 542  UTF-8 support is omitted, we don't even Line 542  UTF-8 support is omitted, we don't even
542  /* #define GETCHARLENTEST(c, eptr, len) */  /* #define GETCHARLENTEST(c, eptr, len) */
543  /* #define BACKCHAR(eptr) */  /* #define BACKCHAR(eptr) */
544  /* #define FORWARDCHAR(eptr) */  /* #define FORWARDCHAR(eptr) */
545  /* #define INTERNALCHAR(condition, eptr, action) */  /* #define ACROSSCHAR(condition, eptr, action) */
546    
547  #else   /* SUPPORT_UTF */  #else   /* SUPPORT_UTF */
548    
# Line 708  because almost all calls are already wit Line 708  because almost all calls are already wit
708  #define FORWARDCHAR(eptr) while((*eptr & 0xc0) == 0x80) eptr++  #define FORWARDCHAR(eptr) while((*eptr & 0xc0) == 0x80) eptr++
709    
710  /* Same as above, but it allows a fully customizable form. */  /* Same as above, but it allows a fully customizable form. */
711  #define INTERNALCHAR(condition, eptr, action) \  #define ACROSSCHAR(condition, eptr, action) \
712    while((condition) && ((eptr) & 0xc0) == 0x80) action    while((condition) && ((eptr) & 0xc0) == 0x80) action
713    
714  #else /* COMPILE_PCRE8 */  #else /* COMPILE_PCRE8 */
# Line 748  pointer. */ Line 748  pointer. */
748  the pointer. */  the pointer. */
749    
750  #define GETUTF16INC(c, eptr) \  #define GETUTF16INC(c, eptr) \
751     { c = (((c & 0x3ff) << 10) | (eptr[1] & 0x3ff)) + 0x10000; eptr++; }     { c = (((c & 0x3ff) << 10) | (*eptr++ & 0x3ff)) + 0x10000; }
752    
753  /* Get the next UTF-16 character, advancing the pointer. This is called when we  /* Get the next UTF-16 character, advancing the pointer. This is called when we
754  know we are in UTF-16 mode. */  know we are in UTF-16 mode. */
# Line 797  code. */ Line 797  code. */
797  #define FORWARDCHAR(eptr) if ((*eptr & 0xfc00) == 0xdc00) eptr++  #define FORWARDCHAR(eptr) if ((*eptr & 0xfc00) == 0xdc00) eptr++
798    
799  /* Same as above, but it allows a fully customizable form. */  /* Same as above, but it allows a fully customizable form. */
800  #define INTERNALCHAR(condition, eptr, action) \  #define ACROSSCHAR(condition, eptr, action) \
801    if ((condition) && ((eptr) & 0xfc00) == 0xdc00) action    if ((condition) && ((eptr) & 0xfc00) == 0xdc00) action
802    
803  #endif  #endif

Legend:
Removed from v.782  
changed lines
  Added in v.785

  ViewVC Help
Powered by ViewVC 1.1.5