• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/libxml2-26/libxml2/

Lines Matching defs:doc

103     if (entity->doc != NULL)
104 dict = entity->doc->dict;
214 if (dtd->doc != NULL)
215 dict = dtd->doc->dict;
239 ret->doc = dtd->doc;
289 * @doc: the document
301 xmlAddDtdEntity(xmlDocPtr doc, const xmlChar *name, int type,
307 if (doc == NULL) {
312 if (doc->extSubset == NULL) {
317 dtd = doc->extSubset;
325 ret->doc = dtd->doc;
338 * @doc: the document
350 xmlAddDocEntity(xmlDocPtr doc, const xmlChar *name, int type,
356 if (doc == NULL) {
361 if (doc->intSubset == NULL) {
366 dtd = doc->intSubset;
374 ret->doc = dtd->doc;
387 * @doc: the document
403 xmlNewEntity(xmlDocPtr doc, const xmlChar *name, int type,
409 if ((doc != NULL) && (doc->intSubset != NULL)) {
410 return(xmlAddDocEntity(doc, name, type, ExternalID, SystemID, content));
412 if (doc != NULL)
413 dict = doc->dict;
419 ret->doc = doc;
441 * @doc: the document referencing the entity
450 xmlGetParameterEntity(xmlDocPtr doc, const xmlChar *name) {
454 if (doc == NULL)
456 if ((doc->intSubset != NULL) && (doc->intSubset->pentities != NULL)) {
457 table = (xmlEntitiesTablePtr) doc->intSubset->pentities;
462 if ((doc->extSubset != NULL) && (doc->extSubset->pentities != NULL)) {
463 table = (xmlEntitiesTablePtr) doc->extSubset->pentities;
471 * @doc: the document referencing the entity
481 xmlGetDtdEntity(xmlDocPtr doc, const xmlChar *name) {
484 if (doc == NULL)
486 if ((doc->extSubset != NULL) && (doc->extSubset->entities != NULL)) {
487 table = (xmlEntitiesTablePtr) doc->extSubset->entities;
495 * @doc: the document referencing the entity
505 xmlGetDocEntity(xmlDocPtr doc, const xmlChar *name) {
509 if (doc != NULL) {
510 if ((doc->intSubset != NULL) && (doc->intSubset->entities != NULL)) {
511 table = (xmlEntitiesTablePtr) doc->intSubset->entities;
516 if (doc->standalone != 1) {
517 if ((doc->extSubset != NULL) &&
518 (doc->extSubset->entities != NULL)) {
519 table = (xmlEntitiesTablePtr) doc->extSubset->entities;
544 * @doc: the document containing the string
556 xmlEncodeEntitiesInternal(xmlDocPtr doc, const xmlChar *input, int attr) {
564 if (doc != NULL)
565 html = (doc->type == XML_HTML_DOCUMENT_NODE);
650 if (((doc != NULL) && (doc->encoding != NULL)) || (html)) {
671 if (doc != NULL)
672 doc->encoding = xmlStrdup(BAD_CAST "ISO-8859-1");
704 if (doc != NULL)
705 doc->encoding = xmlStrdup(BAD_CAST "ISO-8859-1");
744 * @doc: the document containing the string
754 xmlEncodeAttributeEntities(xmlDocPtr doc, const xmlChar *input) {
755 return xmlEncodeEntitiesInternal(doc, input, 1);
760 * @doc: the document containing the string
771 xmlEncodeEntitiesReentrant(xmlDocPtr doc, const xmlChar *input) {
772 return xmlEncodeEntitiesInternal(doc, input, 0);
777 * @doc: the document containing the string
786 xmlEncodeSpecialChars(xmlDocPtr doc ATTRIBUTE_UNUSED, const xmlChar *input) {