mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-804 add IS_PRIVATE_USE() macro
X-SVN-Rev: 3426
This commit is contained in:
parent
2024b0e795
commit
a90d1df83a
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ ucnv_updateCallbackOffsets(int32_t *offsets, int32_t length, int32_t sourceIndex
|
|||
#define UCNV_TO_U_USE_FALLBACK(cnv) TRUE
|
||||
|
||||
/** Use fallbacks from Unicode to codepage when cnv->useFallback or for private-use code points */
|
||||
#define FROM_U_USE_FALLBACK(useFallback, c) ((useFallback) || (uint32_t)((c)-0xe000)<0x1900 || (uint32_t)((c)-0xf0000)<0x20000)
|
||||
#define IS_PRIVATE_USE(c) ((uint32_t)((c)-0xe000)<0x1900 || (uint32_t)((c)-0xf0000)<0x20000)
|
||||
#define FROM_U_USE_FALLBACK(useFallback, c) ((useFallback) || IS_PRIVATE_USE(c))
|
||||
#define UCNV_FROM_U_USE_FALLBACK(cnv, c) FROM_U_USE_FALLBACK((cnv)->useFallback, c)
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue