diff options
author | Daniel Veillard <veillard@src.gnome.org> | 1998-10-27 06:21:04 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 1998-10-27 06:21:04 +0000 |
commit | ccb096379ac43c44755023007ee1dc9e61fbeec7 (patch) | |
tree | 2a7970559dc201c4078e0cb11a2fe2d213e2d1ab /entities.c | |
parent | 11e0058a113fb5c39c1a6ae775d53a919fea79dd (diff) | |
download | libxml2-ccb096379ac43c44755023007ee1dc9e61fbeec7.tar.gz |
Changed the internals a lot for DOM, entity support, slight changes of API,
more (if not all) formating of function comments, started documentation, Daniel.
Diffstat (limited to 'entities.c')
-rw-r--r-- | entities.c | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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. |