| 363 |
support is omitted, we don't even define it. */ |
support is omitted, we don't even define it. */ |
| 364 |
|
|
| 365 |
#ifndef SUPPORT_UTF8 |
#ifndef SUPPORT_UTF8 |
| 366 |
|
#define NEXTCHAR(p) p++; |
| 367 |
#define GETCHAR(c, eptr) c = *eptr; |
#define GETCHAR(c, eptr) c = *eptr; |
| 368 |
#define GETCHARTEST(c, eptr) c = *eptr; |
#define GETCHARTEST(c, eptr) c = *eptr; |
| 369 |
#define GETCHARINC(c, eptr) c = *eptr++; |
#define GETCHARINC(c, eptr) c = *eptr++; |
| 373 |
|
|
| 374 |
#else /* SUPPORT_UTF8 */ |
#else /* SUPPORT_UTF8 */ |
| 375 |
|
|
| 376 |
|
/* Advance a character pointer one byte in non-UTF-8 mode and by one character |
| 377 |
|
in UTF-8 mode. */ |
| 378 |
|
|
| 379 |
|
#define NEXTCHAR(p) \ |
| 380 |
|
p++; \ |
| 381 |
|
if (utf8) { while((*p & 0xc0) == 0x80) p++; } |
| 382 |
|
|
| 383 |
/* 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 |
| 384 |
we know we are in UTF-8 mode. */ |
we know we are in UTF-8 mode. */ |
| 385 |
|
|