Lines Matching refs:doctype
52 #define LIMIT_ALL(all, doctype, charset) do { \ argument
53 (all) = (all) && !CHARSET_PARTIAL_SUPPORT((charset)) && ((doctype) != ENT_HTML_DOC_XML1); \
823 int doctype = flags & ENT_HTML_DOC_TYPE_MASK; in traverse_for_entities() local
861 if (!unicode_cp_is_allowed(code, doctype) || in traverse_for_entities()
862 (doctype == ENT_HTML_DOC_HTML5 && code == 0x0D)) in traverse_for_entities()
875 if (doctype == ENT_HTML_DOC_XHTML && ent_len == 4 && start[0] == 'a' in traverse_for_entities()
950 static entity_table_opt determine_entity_table(int all, int doctype) in determine_entity_table() argument
954 assert(!(doctype == ENT_HTML_DOC_XML1 && all)); in determine_entity_table()
957 retval.ms_table = (doctype == ENT_HTML_DOC_HTML5) ? in determine_entity_table()
960 retval.table = (doctype == ENT_HTML_DOC_HTML401) ? in determine_entity_table()
1100 int doctype = flags & ENT_HTML_DOC_TYPE_MASK; in php_escape_html_entities_ex() local
1114 LIMIT_ALL(all, doctype, charset); in php_escape_html_entities_ex()
1116 entity_table = determine_entity_table(all, doctype); in php_escape_html_entities_ex()
1212 if (!unicode_cp_is_allowed(this_char, doctype)) { in php_escape_html_entities_ex()
1219 if (!unicode_cp_is_allowed(this_char, doctype)) { in php_escape_html_entities_ex()
1232 !unicode_cp_is_allowed(this_char, doctype)) { in php_escape_html_entities_ex()
1263 if (!numeric_entity_is_allowed(code_point, doctype)) in php_escape_html_entities_ex()
1276 if (!(doctype == ENT_HTML_DOC_XHTML && ent_len == 4 && start[0] == 'a' in php_escape_html_entities_ex()
1443 int doctype; in PHP_FUNCTION() local
1462 doctype = flags & ENT_HTML_DOC_TYPE_MASK; in PHP_FUNCTION()
1463 LIMIT_ALL(all, doctype, charset); in PHP_FUNCTION()
1467 entity_table = determine_entity_table((int)all, doctype); in PHP_FUNCTION()