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); \
941 int all, in traverse_for_entities() argument
979 if (!all && (code > 63U || in traverse_for_entities()
1048 static const entity_ht *unescape_inverse_map(int all, int flags) in unescape_inverse_map() argument
1052 if (all) { in unescape_inverse_map()
1076 static entity_table_opt determine_entity_table(int all, int doctype) in determine_entity_table() argument
1080 assert(!(doctype == ENT_HTML_DOC_XML1 && all)); in determine_entity_table()
1082 if (all) { in determine_entity_table()
1098 PHPAPI zend_string *php_unescape_html_entities(unsigned char *old, size_t oldlen, int all, int flag… in php_unescape_html_entities() argument
1106 if (all) { in php_unescape_html_entities()
1128 inverse_map = unescape_inverse_map(all, flags); in php_unescape_html_entities()
1131 traverse_for_entities((char*)old, oldlen, ret, all, flags, inverse_map, charset); in php_unescape_html_entities()
1138 PHPAPI zend_string *php_escape_html_entities(unsigned char *old, size_t oldlen, int all, int flags,… in php_escape_html_entities() argument
1140 return php_escape_html_entities_ex(old, oldlen, all, flags, hint_charset, 1); in php_escape_html_entities()
1226 PHPAPI zend_string *php_escape_html_entities_ex(unsigned char *old, size_t oldlen, int all, int fla… in php_escape_html_entities_ex() argument
1239 if (all) { /* replace with all named entities */ in php_escape_html_entities_ex()
1245 LIMIT_ALL(all, doctype, charset); in php_escape_html_entities_ex()
1247 entity_table = determine_entity_table(all, doctype); in php_escape_html_entities_ex()
1248 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in php_escape_html_entities_ex()
1317 if (all) { /* false that CHARSET_PARTIAL_SUPPORT(charset) */ in php_escape_html_entities_ex()
1348 if (!all) /* otherwise we already did this */ in php_escape_html_entities_ex()
1440 static void php_html_entities(INTERNAL_FUNCTION_PARAMETERS, int all) in php_html_entities() argument
1459 …replaced = php_escape_html_entities_ex((unsigned char*)ZSTR_VAL(str), ZSTR_LEN(str), all, (int) fl… in php_html_entities()
1611 zend_long all = HTML_SPECIALCHARS, in PHP_FUNCTION() local
1625 &all, &flags, &charset_hint, &charset_hint_len) == FAILURE) { in PHP_FUNCTION()
1631 LIMIT_ALL(all, doctype, charset); in PHP_FUNCTION()
1635 entity_table = determine_entity_table((int)all, doctype); in PHP_FUNCTION()
1636 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in PHP_FUNCTION()
1640 if (all) { /* HTML_ENTITIES (actually, any non-zero value for 1st param) */ in PHP_FUNCTION()