Lines Matching defs:doc

101     if (entity->doc != NULL)
102 dict = entity->doc->dict;
156 if (dtd->doc != NULL)
157 dict = dtd->doc->dict;
218 ret->doc = dtd->doc;
268 * @doc: the document
280 xmlAddDtdEntity(xmlDocPtr doc, const xmlChar *name, int type,
286 if (doc == NULL) {
291 if (doc->extSubset == NULL) {
296 dtd = doc->extSubset;
304 ret->doc = dtd->doc;
317 * @doc: the document
329 xmlAddDocEntity(xmlDocPtr doc, const xmlChar *name, int type,
335 if (doc == NULL) {
340 if (doc->intSubset == NULL) {
345 dtd = doc->intSubset;
353 ret->doc = dtd->doc;
382 * @doc: the document referencing the entity
391 xmlGetParameterEntity(xmlDocPtr doc, const xmlChar *name) {
395 if (doc == NULL)
397 if ((doc->intSubset != NULL) && (doc->intSubset->pentities != NULL)) {
398 table = (xmlEntitiesTablePtr) doc->intSubset->pentities;
403 if ((doc->extSubset != NULL) && (doc->extSubset->pentities != NULL)) {
404 table = (xmlEntitiesTablePtr) doc->extSubset->pentities;
412 * @doc: the document referencing the entity
422 xmlGetDtdEntity(xmlDocPtr doc, const xmlChar *name) {
425 if (doc == NULL)
427 if ((doc->extSubset != NULL) && (doc->extSubset->entities != NULL)) {
428 table = (xmlEntitiesTablePtr) doc->extSubset->entities;
436 * @doc: the document referencing the entity
446 xmlGetDocEntity(xmlDocPtr doc, const xmlChar *name) {
450 if (doc != NULL) {
451 if ((doc->intSubset != NULL) && (doc->intSubset->entities != NULL)) {
452 table = (xmlEntitiesTablePtr) doc->intSubset->entities;
457 if (doc->standalone != 1) {
458 if ((doc->extSubset != NULL) &&
459 (doc->extSubset->entities != NULL)) {
460 table = (xmlEntitiesTablePtr) doc->extSubset->entities;
486 * @doc: the document containing the string
497 xmlEncodeEntitiesReentrant(xmlDocPtr doc, const xmlChar *input) {
505 if (doc != NULL)
506 html = (doc->type == XML_HTML_DOCUMENT_NODE);
553 if (((doc != NULL) && (doc->encoding != NULL)) || (html)) {
574 if (doc != NULL)
575 doc->encoding = xmlStrdup(BAD_CAST "ISO-8859-1");
607 if (doc != NULL)
608 doc->encoding = xmlStrdup(BAD_CAST "ISO-8859-1");
642 * @doc: the document containing the string
651 xmlEncodeSpecialChars(xmlDocPtr doc ATTRIBUTE_UNUSED, const xmlChar *input) {