ICU-176 fix UTF_IS_SURROGATE() to work on both code units & code points

X-SVN-Rev: 1120
This commit is contained in:
Markus Scherer 2000-04-13 17:24:48 +00:00
parent c6a96e7684
commit 7a4cc4da43

View file

@ -86,8 +86,8 @@ typedef int32_t UTextOffset;
/* single-code point definitions -------------------------------------------- */
/* is this code unit a surrogate? */
#define UTF_IS_SURROGATE(uchar) (((uchar)&0xf800)==0xd800)
/* is this code unit or code point a surrogate? */
#define UTF_IS_SURROGATE(uchar) (((uchar)&0xfffff800)==0xd800)
/*
* Is a given 32-bit code point/Unicode scalar value