Lines Matching refs:all

62 #define LIMIT_ALL(all, doctype, charset) do { \  argument
63 (all) = (all) && !CHARSET_PARTIAL_SUPPORT((charset)) && ((doctype) != ENT_HTML_DOC_XML1); \
929 int all, in traverse_for_entities() argument
967 if (!all && (code > 63U || in traverse_for_entities()
1036 static const entity_ht *unescape_inverse_map(int all, int flags) in unescape_inverse_map() argument
1040 if (all) { in unescape_inverse_map()
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()
1070 if (all) { in determine_entity_table()
1086 PHPAPI char *php_unescape_html_entities(unsigned char *old, size_t oldlen, size_t *newlen, int all,… in php_unescape_html_entities() argument
1094 if (all) { in php_unescape_html_entities()
1115 inverse_map = unescape_inverse_map(all, flags); in php_unescape_html_entities()
1118 traverse_for_entities(old, oldlen, ret, &retlen, all, flags, inverse_map, charset); in php_unescape_html_entities()
1126 PHPAPI char *php_escape_html_entities(unsigned char *old, size_t oldlen, size_t *newlen, int all, i… in php_escape_html_entities() argument
1128 return php_escape_html_entities_ex(old, oldlen, newlen, all, flags, hint_charset, 1 TSRMLS_CC); in php_escape_html_entities()
1214 PHPAPI char *php_escape_html_entities_ex(unsigned char *old, size_t oldlen, size_t *newlen, int all in php_escape_html_entities_ex() argument
1227 if (all) { /* replace with all named entities */ in php_escape_html_entities_ex()
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()
1236 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in php_escape_html_entities_ex()
1310 if (all) { /* false that CHARSET_PARTIAL_SUPPORT(charset) */ in php_escape_html_entities_ex()
1341 if (!all) /* otherwise we already did this */ in php_escape_html_entities_ex()
1433 static void php_html_entities(INTERNAL_FUNCTION_PARAMETERS, int all) in php_html_entities() argument
1446 …replaced = php_escape_html_entities_ex(str, str_len, &new_len, all, (int) flags, hint_charset, dou… in php_html_entities()
1595 long all = HTML_SPECIALCHARS, in PHP_FUNCTION() local
1609 &all, &flags, &charset_hint, &charset_hint_len) == FAILURE) { in PHP_FUNCTION()
1615 LIMIT_ALL(all, doctype, charset); in PHP_FUNCTION()
1619 entity_table = determine_entity_table(all, doctype); in PHP_FUNCTION()
1620 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in PHP_FUNCTION()
1624 if (all) { /* HTML_ENTITIES (actually, any non-zero value for 1st param) */ in PHP_FUNCTION()