ICU-176 make the utf_is_first/second_surrogate() work with code points
X-SVN-Rev: 1206
This commit is contained in:
parent
f445f984a4
commit
405bed84d9
@ -27,8 +27,8 @@
|
||||
/* single-code point definitions -------------------------------------------- */
|
||||
|
||||
/* handle surrogate pairs */
|
||||
#define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfc00)==0xd800)
|
||||
#define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfc00)==0xdc00)
|
||||
#define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xd800)
|
||||
#define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xdc00)
|
||||
|
||||
#define UTF_IS_SURROGATE_FIRST(c) (((c)&0x400)==0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user