Lines Matching refs:ent_len
874 size_t ent_len; in traverse_for_entities() local
879 if (process_named_entity_html(&next, &start, &ent_len) == FAILURE) in traverse_for_entities()
882 if (resolve_named_entity_html(start, ent_len, inv_map, &code, &code2) == FAILURE) { in traverse_for_entities()
883 if (doctype == ENT_HTML_DOC_XHTML && ent_len == 4 && start[0] == 'a' in traverse_for_entities()
1261 size_t ent_len; /* not counting & or ; */ in php_escape_html_entities_ex() local
1274 ent_len = pos - (char*)&old[cursor]; in php_escape_html_entities_ex()
1281 if (process_named_entity_html(&next, &start, &ent_len) == FAILURE) in php_escape_html_entities_ex()
1283 if (resolve_named_entity_html(start, ent_len, inv_map, &dummy1, &dummy2) == FAILURE) { 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()
1295 if (maxlen - len < ent_len + 2 /* & and ; */) { in php_escape_html_entities_ex()
1297 replaced = zend_string_safe_realloc(replaced, maxlen, 1, ent_len + 128, 0); in php_escape_html_entities_ex()
1298 maxlen += ent_len + 128; in php_escape_html_entities_ex()
1301 memcpy(&ZSTR_VAL(replaced)[len], &old[cursor], ent_len); in php_escape_html_entities_ex()
1302 len += ent_len; in php_escape_html_entities_ex()
1304 cursor += ent_len + 1; in php_escape_html_entities_ex()