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++; |
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 |
|
|