ICU-176 make the utf_is_first/second_surrogate() work with code points

X-SVN-Rev: 1206
This commit is contained in:
Markus Scherer 2000-04-21 18:56:21 +00:00
parent f445f984a4
commit 405bed84d9

View File

@ -27,8 +27,8 @@
/* single-code point definitions -------------------------------------------- */ /* single-code point definitions -------------------------------------------- */
/* handle surrogate pairs */ /* handle surrogate pairs */
#define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfc00)==0xd800) #define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xd800)
#define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfc00)==0xdc00) #define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xdc00)
#define UTF_IS_SURROGATE_FIRST(c) (((c)&0x400)==0) #define UTF_IS_SURROGATE_FIRST(c) (((c)&0x400)==0)