… | |
… | |
769 | /****************************************************************************/ |
769 | /****************************************************************************/ |
770 | |
770 | |
771 | #define UNICODE_MASK 0x1fffffUL |
771 | #define UNICODE_MASK 0x1fffffUL |
772 | |
772 | |
773 | #if UNICODE_3 |
773 | #if UNICODE_3 |
774 | # define COMPOSE_LO 0x40000000UL |
774 | # define COMPOSE_LO 0x110000UL |
775 | # define COMPOSE_HI 0x400fffffUL |
775 | # define COMPOSE_HI 0x1fffffUL |
776 | # define IS_COMPOSE(n) ((int32_t)(n) >= COMPOSE_LO) |
776 | # define IS_COMPOSE(n) ((int32_t)(n) >= COMPOSE_LO) |
777 | #else |
777 | #else |
778 | # if ENABLE_PERL |
778 | # if ENABLE_PERL |
779 | # define COMPOSE_LO 0xe000UL // our _own_ functions don't like (illegal) surrogates |
779 | # define COMPOSE_LO 0xe000UL // our _own_ functions don't like (illegal) surrogates |
780 | # define COMPOSE_HI 0xf8ffUL // in utf-8, so use private use area only |
780 | # define COMPOSE_HI 0xf8ffUL // in utf-8, so use private use area only |