1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +03:00

Changed the internals a lot for DOM, entity support, slight changes of API,

more (if not all) formating of function comments, started documentation, Daniel.
This commit is contained in:
Daniel Veillard
1998-10-27 06:21:04 +00:00
parent 11e0058a11
commit ccb096379a
23 changed files with 1067 additions and 219 deletions

View File

@ -143,6 +143,29 @@ void xmlInitializePredefinedEntities(void) {
}
}
/**
* xmlGetPredefinedEntity:
* @name: the entity name
*
* Check whether this name is an predefined entity.
*
* return values: NULL if not, othervise the entity
*/
xmlEntityPtr
xmlGetPredefinedEntity(const CHAR *name) {
int i;
xmlEntityPtr cur;
if (xmlPredefinedEntities == NULL)
xmlInitializePredefinedEntities();
for (i = 0;i < xmlPredefinedEntities->nb_entities;i++) {
cur = &xmlPredefinedEntities->table[i];
if (!xmlStrcmp(cur->name, name)) return(cur);
}
return(NULL);
}
/*
* xmlAddDtdEntity : register a new entity for this DTD.