mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-176 fix UTF_IS_SURROGATE() to work on both code units & code points
X-SVN-Rev: 1120
This commit is contained in:
parent
c6a96e7684
commit
7a4cc4da43
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue