#ifndef BABBLEMUD_ENTITIES_H
#define BABBLEMUD_ENTITIES_H

#include <map>

#include "strings.h"

// get global entities map
StringMap & GetGlobalEntityMap ();

// get the contents of an entity, given its name
// can include: &#nnn;   or &#xnn; (hex)
string Get_XML_Entity (const string & strName, 
                       const StringMap * pCustomEntityMap = NULL);

// replace entities in a string, including optional custom entities
string ReplaceEntities (const string & strSource, 
                        const StringMap * pCustomEntityMap = NULL);


#endif // BABBLEMUD_ENTITIES_H

