version 1.17, 2006/09/05 19:59:33
|
version 1.18, 2006/11/07 21:30:36
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Dave Rosckes (rosckes@us.ibm.com) |
|
// |
|
// Modified By: Yi Zhou Hewlett-Packard Company (yi.zhou@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_CommonUTF_h | #ifndef Pegasus_CommonUTF_h |
|
|
| |
PEGASUS_COMMON_LINKAGE extern const char trailingBytesForUTF8[]; | PEGASUS_COMMON_LINKAGE extern const char trailingBytesForUTF8[]; |
| |
#define UTF_8_COUNT_TRAIL_BYTES(leadByte) (trailingBytesForUTF8[(Uint8)leadByte]) |
#define UTF_8_COUNT_TRAIL_BYTES(leadByte) \ |
|
(trailingBytesForUTF8[(Uint8)leadByte]) |
| |
#define UTF8_NEXT(s, i) { \ | #define UTF8_NEXT(s, i) { \ |
(i)=((i) + UTF_8_COUNT_TRAIL_BYTES((s)[(i)]) + 1); \ | (i)=((i) + UTF_8_COUNT_TRAIL_BYTES((s)[(i)]) + 1); \ |