Lines Matching refs:ent
820 * @ent: An entity
827 xmlCopyEntity(xmlEntityPtr ent) {
838 cur->etype = ent->etype;
839 if (ent->name != NULL)
840 cur->name = xmlStrdup(ent->name);
841 if (ent->ExternalID != NULL)
842 cur->ExternalID = xmlStrdup(ent->ExternalID);
843 if (ent->SystemID != NULL)
844 cur->SystemID = xmlStrdup(ent->SystemID);
845 if (ent->content != NULL)
846 cur->content = xmlStrdup(ent->content);
847 if (ent->orig != NULL)
848 cur->orig = xmlStrdup(ent->orig);
849 if (ent->URI != NULL)
850 cur->URI = xmlStrdup(ent->URI);
914 * @ent: An entity table
919 xmlDumpEntityDecl(xmlBufferPtr buf, xmlEntityPtr ent) {
920 if ((buf == NULL) || (ent == NULL)) return;
921 switch (ent->etype) {
924 xmlBufferWriteCHAR(buf, ent->name);
926 if (ent->orig != NULL)
927 xmlBufferWriteQuotedString(buf, ent->orig);
929 xmlDumpEntityContent(buf, ent->content);
934 xmlBufferWriteCHAR(buf, ent->name);
935 if (ent->ExternalID != NULL) {
937 xmlBufferWriteQuotedString(buf, ent->ExternalID);
939 xmlBufferWriteQuotedString(buf, ent->SystemID);
942 xmlBufferWriteQuotedString(buf, ent->SystemID);
948 xmlBufferWriteCHAR(buf, ent->name);
949 if (ent->ExternalID != NULL) {
951 xmlBufferWriteQuotedString(buf, ent->ExternalID);
953 xmlBufferWriteQuotedString(buf, ent->SystemID);
956 xmlBufferWriteQuotedString(buf, ent->SystemID);
958 if (ent->content != NULL) { /* Should be true ! */
960 if (ent->orig != NULL)
961 xmlBufferWriteCHAR(buf, ent->orig);
963 xmlBufferWriteCHAR(buf, ent->content);
969 xmlBufferWriteCHAR(buf, ent->name);
971 if (ent->orig == NULL)
972 xmlDumpEntityContent(buf, ent->content);
974 xmlBufferWriteQuotedString(buf, ent->orig);
979 xmlBufferWriteCHAR(buf, ent->name);
980 if (ent->ExternalID != NULL) {
982 xmlBufferWriteQuotedString(buf, ent->ExternalID);
984 xmlBufferWriteQuotedString(buf, ent->SystemID);
987 xmlBufferWriteQuotedString(buf, ent->SystemID);
999 * @ent: An entity table
1005 xmlDumpEntityDeclScan(xmlEntityPtr ent, xmlBufferPtr buf) {
1006 xmlDumpEntityDecl(buf, ent);