diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-07-11 14:53:41 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-07-11 14:53:41 +0000 |
commit | 4299955a938be0e20bea4fae5fc346b6501d3997 (patch) | |
tree | a4ed201cc3623cd6963e6ab4e49e6e68aded98b9 /pcre_internal.h | |
parent | a16000d8f2c04ad3c448033d27256d9b3fe53b34 (diff) | |
download | pcre-4299955a938be0e20bea4fae5fc346b6501d3997.tar.gz |
Several bugs concerned with skipping over UTF-8 characters at the start of
matching (8.0/13, 8.0/14).
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@364 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_internal.h')
-rw-r--r-- | pcre_internal.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pcre_internal.h b/pcre_internal.h index 7547053..97c62d9 100644 --- a/pcre_internal.h +++ b/pcre_internal.h @@ -381,7 +381,6 @@ never be called in byte mode. To make sure it can never even appear when UTF-8 support is omitted, we don't even define it. */ #ifndef SUPPORT_UTF8 -#define NEXTCHAR(p) p++; #define GETCHAR(c, eptr) c = *eptr; #define GETCHARTEST(c, eptr) c = *eptr; #define GETCHARINC(c, eptr) c = *eptr++; @@ -391,13 +390,6 @@ support is omitted, we don't even define it. */ #else /* SUPPORT_UTF8 */ -/* 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++; } - /* Get the next UTF-8 character, not advancing the pointer. This is called when we know we are in UTF-8 mode. */ |