Lines Matching refs:uni_cp
700 *res = table->inner[ENT_ENC_TO_UNI_STAGE1(code)]->uni_cp[ENT_ENC_TO_UNI_STAGE2(code)]; in map_to_unicode()
705 static inline int unicode_cp_is_allowed(unsigned uni_cp, int document_type) in unicode_cp_is_allowed() argument
733 return (uni_cp >= 0x20 && uni_cp <= 0x7E) || in unicode_cp_is_allowed()
734 (uni_cp == 0x0A || uni_cp == 0x09 || uni_cp == 0x0D) || in unicode_cp_is_allowed()
735 (uni_cp >= 0xA0 && uni_cp <= 0xD7FF) || in unicode_cp_is_allowed()
736 (uni_cp >= 0xE000 && uni_cp <= 0x10FFFF); in unicode_cp_is_allowed()
738 return (uni_cp >= 0x20 && uni_cp <= 0x7E) || in unicode_cp_is_allowed()
739 (uni_cp >= 0x09 && uni_cp <= 0x0D && uni_cp != 0x0B) || /* form feed U+0C allowed */ in unicode_cp_is_allowed()
740 (uni_cp >= 0xA0 && uni_cp <= 0xD7FF) || in unicode_cp_is_allowed()
741 (uni_cp >= 0xE000 && uni_cp <= 0x10FFFF && in unicode_cp_is_allowed()
742 ((uni_cp & 0xFFFF) < 0xFFFE) && /* last two of each plane (nonchars) disallowed */ in unicode_cp_is_allowed()
743 (uni_cp < 0xFDD0 || uni_cp > 0xFDEF)); /* U+FDD0-U+FDEF (nonchars) disallowed */ in unicode_cp_is_allowed()
746 return (uni_cp >= 0x20 && uni_cp <= 0xD7FF) || in unicode_cp_is_allowed()
747 (uni_cp == 0x0A || uni_cp == 0x09 || uni_cp == 0x0D) || in unicode_cp_is_allowed()
748 (uni_cp >= 0xE000 && uni_cp <= 0x10FFFF && uni_cp != 0xFFFE && uni_cp != 0xFFFF); in unicode_cp_is_allowed()
756 static inline int numeric_entity_is_allowed(unsigned uni_cp, int document_type) in numeric_entity_is_allowed() argument
763 return uni_cp <= 0x10FFFF; in numeric_entity_is_allowed()
770 return (uni_cp >= 0x20 && uni_cp <= 0x7E) || in numeric_entity_is_allowed()
771 … (uni_cp >= 0x09 && uni_cp <= 0x0C && uni_cp != 0x0B) || /* form feed U+0C allowed, but not U+0D */ in numeric_entity_is_allowed()
772 (uni_cp >= 0xA0 && uni_cp <= 0x10FFFF && in numeric_entity_is_allowed()
773 ((uni_cp & 0xFFFF) < 0xFFFE) && /* last two of each plane (nonchars) disallowed */ in numeric_entity_is_allowed()
774 (uni_cp < 0xFDD0 || uni_cp > 0xFDEF)); /* U+FDD0-U+FDEF (nonchars) disallowed */ in numeric_entity_is_allowed()
779 return unicode_cp_is_allowed(uni_cp, document_type); in numeric_entity_is_allowed()
1593 unsigned uni_cp, in write_s3row_data() local
1596 uni_cp = mcpr[i].normal_entry.second_cp; in write_s3row_data()
1600 if (map_from_unicode(uni_cp, charset, &spe_cp) == FAILURE) in write_s3row_data()
1603 spe_cp = uni_cp; in write_s3row_data()
1689 unsigned uni_cp; in PHP_FUNCTION() local
1696 map_to_unicode(i, to_uni_table, &uni_cp); in PHP_FUNCTION()
1697 r = &ms_table[ENT_STAGE1_INDEX(uni_cp)][ENT_STAGE2_INDEX(uni_cp)][ENT_STAGE3_INDEX(uni_cp)]; in PHP_FUNCTION()