Lines Matching refs:ent_len
992 size_t ent_len; in traverse_for_entities() local
997 if (process_named_entity_html(&next, &start, &ent_len) == FAILURE) in traverse_for_entities()
1000 if (resolve_named_entity_html(start, ent_len, inv_map, &code, &code2) == FAILURE) { in traverse_for_entities()
1001 if (doctype == ENT_HTML_DOC_XHTML && ent_len == 4 && start[0] == 'a' in traverse_for_entities()
1384 size_t ent_len; /* not counting & or ; */ in php_escape_html_entities_ex() local
1397 ent_len = pos - (char*)&old[cursor]; in php_escape_html_entities_ex()
1404 if (process_named_entity_html(&next, &start, &ent_len) == FAILURE) in php_escape_html_entities_ex()
1406 if (resolve_named_entity_html(start, ent_len, inv_map, &dummy1, &dummy2) == FAILURE) { in php_escape_html_entities_ex()
1407 if (!(doctype == ENT_HTML_DOC_XHTML && ent_len == 4 && start[0] == 'a' in php_escape_html_entities_ex()
1418 if (maxlen - len < ent_len + 2 /* & and ; */) { in php_escape_html_entities_ex()
1420 replaced = zend_string_safe_realloc(replaced, maxlen, 1, ent_len + 128, 0); in php_escape_html_entities_ex()
1421 maxlen += ent_len + 128; in php_escape_html_entities_ex()
1424 memcpy(&ZSTR_VAL(replaced)[len], &old[cursor], ent_len); in php_escape_html_entities_ex()
1425 len += ent_len; in php_escape_html_entities_ex()
1427 cursor += ent_len + 1; in php_escape_html_entities_ex()