Lines Matching refs:doctype

62 #define LIMIT_ALL(all, doctype, charset) do { \  argument
63 (all) = (all) && !CHARSET_PARTIAL_SUPPORT((charset)) && ((doctype) != ENT_HTML_DOC_XML1); \
937 int doctype = flags & ENT_HTML_DOC_TYPE_MASK; in traverse_for_entities() local
975 if (!unicode_cp_is_allowed(code, doctype) || in traverse_for_entities()
976 (doctype == ENT_HTML_DOC_HTML5 && code == 0x0D)) in traverse_for_entities()
989 if (doctype == ENT_HTML_DOC_XHTML && ent_len == 4 && start[0] == 'a' in traverse_for_entities()
1064 static entity_table_opt determine_entity_table(int all, int doctype) in determine_entity_table() argument
1068 assert(!(doctype == ENT_HTML_DOC_XML1 && all)); in determine_entity_table()
1071 retval.ms_table = (doctype == ENT_HTML_DOC_HTML5) ? in determine_entity_table()
1074 retval.table = (doctype == ENT_HTML_DOC_HTML401) ? in determine_entity_table()
1219 int doctype = flags & ENT_HTML_DOC_TYPE_MASK; in php_escape_html_entities_ex() local
1233 LIMIT_ALL(all, doctype, charset); in php_escape_html_entities_ex()
1235 entity_table = determine_entity_table(all, doctype); in php_escape_html_entities_ex()
1336 if (!unicode_cp_is_allowed(this_char, doctype)) { in php_escape_html_entities_ex()
1343 if (!unicode_cp_is_allowed(this_char, doctype)) { in php_escape_html_entities_ex()
1356 !unicode_cp_is_allowed(this_char, doctype)) { in php_escape_html_entities_ex()
1387 if (!numeric_entity_is_allowed(code_point, doctype)) in php_escape_html_entities_ex()
1400 if (!(doctype == ENT_HTML_DOC_XHTML && ent_len == 4 && start[0] == 'a' in php_escape_html_entities_ex()
1602 int doctype; in PHP_FUNCTION() local
1619 doctype = flags & ENT_HTML_DOC_TYPE_MASK; in PHP_FUNCTION()
1620 LIMIT_ALL(all, doctype, charset); in PHP_FUNCTION()
1624 entity_table = determine_entity_table(all, doctype); in PHP_FUNCTION()