/[pcre]/code/trunk/pcre_internal.h
ViewVC logotype

Diff of /code/trunk/pcre_internal.h

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

revision 359 by ph10, Wed Jul 9 16:20:19 2008 UTC revision 364 by ph10, Fri Jul 11 14:53:41 2008 UTC
# Line 381  never be called in byte mode. To make su Line 381  never be called in byte mode. To make su
381  support is omitted, we don't even define it. */  support is omitted, we don't even define it. */
382    
383  #ifndef SUPPORT_UTF8  #ifndef SUPPORT_UTF8
 #define NEXTCHAR(p) p++;  
384  #define GETCHAR(c, eptr) c = *eptr;  #define GETCHAR(c, eptr) c = *eptr;
385  #define GETCHARTEST(c, eptr) c = *eptr;  #define GETCHARTEST(c, eptr) c = *eptr;
386  #define GETCHARINC(c, eptr) c = *eptr++;  #define GETCHARINC(c, eptr) c = *eptr++;
# Line 391  support is omitted, we don't even define Line 390  support is omitted, we don't even define
390    
391  #else   /* SUPPORT_UTF8 */  #else   /* SUPPORT_UTF8 */
392    
 /* Advance a character pointer one byte in non-UTF-8 mode and by one character  
 in UTF-8 mode. */  
   
 #define NEXTCHAR(p) \  
   p++; \  
   if (utf8) { while((*p & 0xc0) == 0x80) p++; }  
   
393  /* Get the next UTF-8 character, not advancing the pointer. This is called when  /* Get the next UTF-8 character, not advancing the pointer. This is called when
394  we know we are in UTF-8 mode. */  we know we are in UTF-8 mode. */
395    

Legend:
Removed from v.359  
changed lines
  Added in v.364

  ViewVC Help
Powered by ViewVC 1.1.5