Lines Matching refs:doctype
56 #define LIMIT_ALL(all, doctype, charset) do { \ argument
57 (all) = (all) && !CHARSET_PARTIAL_SUPPORT((charset)) && ((doctype) != ENT_HTML_DOC_XML1); \
831 int doctype = flags & ENT_HTML_DOC_TYPE_MASK; in traverse_for_entities() local
869 if (!unicode_cp_is_allowed(code, doctype) || in traverse_for_entities()
870 (doctype == ENT_HTML_DOC_HTML5 && code == 0x0D)) in traverse_for_entities()
883 if (doctype == ENT_HTML_DOC_XHTML && ent_len == 4 && start[0] == 'a' in traverse_for_entities()
958 static entity_table_opt determine_entity_table(int all, int doctype) in determine_entity_table() argument
962 assert(!(doctype == ENT_HTML_DOC_XML1 && all)); in determine_entity_table()
965 retval.ms_table = (doctype == ENT_HTML_DOC_HTML5) ? in determine_entity_table()
968 retval.table = (doctype == ENT_HTML_DOC_HTML401) ? in determine_entity_table()
1108 int doctype = flags & ENT_HTML_DOC_TYPE_MASK; in php_escape_html_entities_ex() local
1122 LIMIT_ALL(all, doctype, charset); in php_escape_html_entities_ex()
1124 entity_table = determine_entity_table(all, doctype); in php_escape_html_entities_ex()
1220 if (!unicode_cp_is_allowed(this_char, doctype)) { in php_escape_html_entities_ex()
1227 if (!unicode_cp_is_allowed(this_char, doctype)) { in php_escape_html_entities_ex()
1240 !unicode_cp_is_allowed(this_char, doctype)) { in php_escape_html_entities_ex()
1271 if (!numeric_entity_is_allowed(code_point, doctype)) in php_escape_html_entities_ex()
1284 if (!(doctype == ENT_HTML_DOC_XHTML && ent_len == 4 && start[0] == 'a' in php_escape_html_entities_ex()
1472 int doctype; in PHP_FUNCTION() local
1491 doctype = flags & ENT_HTML_DOC_TYPE_MASK; in PHP_FUNCTION()
1492 LIMIT_ALL(all, doctype, charset); in PHP_FUNCTION()
1496 entity_table = determine_entity_table((int)all, doctype); in PHP_FUNCTION()