Lines Matching refs:uni_cp
579 *res = table->inner[ENT_ENC_TO_UNI_STAGE1(code)]->uni_cp[ENT_ENC_TO_UNI_STAGE2(code)]; in map_to_unicode()
584 static inline int unicode_cp_is_allowed(unsigned uni_cp, int document_type) in unicode_cp_is_allowed() argument
612 return (uni_cp >= 0x20 && uni_cp <= 0x7E) || in unicode_cp_is_allowed()
613 (uni_cp == 0x0A || uni_cp == 0x09 || uni_cp == 0x0D) || in unicode_cp_is_allowed()
614 (uni_cp >= 0xA0 && uni_cp <= 0xD7FF) || in unicode_cp_is_allowed()
615 (uni_cp >= 0xE000 && uni_cp <= 0x10FFFF); in unicode_cp_is_allowed()
617 return (uni_cp >= 0x20 && uni_cp <= 0x7E) || in unicode_cp_is_allowed()
618 (uni_cp >= 0x09 && uni_cp <= 0x0D && uni_cp != 0x0B) || /* form feed U+0C allowed */ in unicode_cp_is_allowed()
619 (uni_cp >= 0xA0 && uni_cp <= 0xD7FF) || in unicode_cp_is_allowed()
620 (uni_cp >= 0xE000 && uni_cp <= 0x10FFFF && in unicode_cp_is_allowed()
621 ((uni_cp & 0xFFFF) < 0xFFFE) && /* last two of each plane (nonchars) disallowed */ in unicode_cp_is_allowed()
622 (uni_cp < 0xFDD0 || uni_cp > 0xFDEF)); /* U+FDD0-U+FDEF (nonchars) disallowed */ in unicode_cp_is_allowed()
625 return (uni_cp >= 0x20 && uni_cp <= 0xD7FF) || in unicode_cp_is_allowed()
626 (uni_cp == 0x0A || uni_cp == 0x09 || uni_cp == 0x0D) || in unicode_cp_is_allowed()
627 (uni_cp >= 0xE000 && uni_cp <= 0x10FFFF && uni_cp != 0xFFFE && uni_cp != 0xFFFF); in unicode_cp_is_allowed()
635 static inline int numeric_entity_is_allowed(unsigned uni_cp, int document_type) in numeric_entity_is_allowed() argument
642 return uni_cp <= 0x10FFFF; in numeric_entity_is_allowed()
649 return (uni_cp >= 0x20 && uni_cp <= 0x7E) || in numeric_entity_is_allowed()
650 … (uni_cp >= 0x09 && uni_cp <= 0x0C && uni_cp != 0x0B) || /* form feed U+0C allowed, but not U+0D */ in numeric_entity_is_allowed()
651 (uni_cp >= 0xA0 && uni_cp <= 0x10FFFF && in numeric_entity_is_allowed()
652 ((uni_cp & 0xFFFF) < 0xFFFE) && /* last two of each plane (nonchars) disallowed */ in numeric_entity_is_allowed()
653 (uni_cp < 0xFDD0 || uni_cp > 0xFDEF)); /* U+FDD0-U+FDEF (nonchars) disallowed */ in numeric_entity_is_allowed()
658 return unicode_cp_is_allowed(uni_cp, document_type); in numeric_entity_is_allowed()
1420 unsigned uni_cp, in write_s3row_data() local
1423 uni_cp = mcpr[i].normal_entry.second_cp; in write_s3row_data()
1427 if (map_from_unicode(uni_cp, charset, &spe_cp) == FAILURE) in write_s3row_data()
1430 spe_cp = uni_cp; in write_s3row_data()
1516 unsigned uni_cp; in PHP_FUNCTION() local
1523 map_to_unicode(i, to_uni_table, &uni_cp); in PHP_FUNCTION()
1524 r = &ms_table[ENT_STAGE1_INDEX(uni_cp)][ENT_STAGE2_INDEX(uni_cp)][ENT_STAGE3_INDEX(uni_cp)]; in PHP_FUNCTION()