mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-1967 make non-character check faster - fail most of BMP right away
X-SVN-Rev: 8989
This commit is contained in:
parent
1a953aa0f8
commit
e3efed98e9
1 changed files with 3 additions and 2 deletions
|
@ -207,8 +207,9 @@ typedef int32_t UTextOffset;
|
|||
* Is a given 32-bit code point a Unicode noncharacter?
|
||||
*/
|
||||
#define UTF_IS_UNICODE_NONCHAR(c) \
|
||||
(((((c) & 0xfffe) == 0xfffe) || ((c) >= 0xfdd0 && (c) <= 0xfdef)) && \
|
||||
((c) <= 0x10ffff))
|
||||
((c)>=0xfdd0 && \
|
||||
((uint32_t)(c)<=0xfdef || ((c)&0xfffe)==0xfffe) && \
|
||||
(uint32_t)(c)<=0x10ffff)
|
||||
|
||||
/**
|
||||
* Is a given 32-bit code point/Unicode scalar value
|
||||
|
|
Loading…
Add table
Reference in a new issue