• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching defs:content

1353 			    node = xmlNewDocText(doc, ent->content);
1356 node = xmlNewDocText(doc, ent->content);
1359 xmlNodeAddContent(last, ent->content);
1374 (const xmlChar*)node->content);
1538 node = xmlNewDocText(doc, ent->content);
1541 node = xmlNewDocText(doc, ent->content);
1544 xmlNodeAddContent(last, ent->content);
1559 (const xmlChar*)node->content);
1642 ret = xmlStrcat(ret, node->content);
1646 buffer = xmlEncodeEntitiesReentrant(doc, node->content);
1658 /* an entity content can be any "well balanced chunk",
1659 * i.e. the result of the content [43] production:
1660 * http://www.w3.org/TR/REC-xml#NT-content.
1671 ret = xmlStrcat(ret, node->content);
1724 ret = xmlStrcat(ret, node->content);
1728 buffer = xmlEncodeSpecialChars(doc, node->content);
1740 /* an entity content can be any "well balanced chunk",
1741 * i.e. the result of the content [43] production:
1742 * http://www.w3.org/TR/REC-xml#NT-content.
1754 ret = xmlStrcat(ret, node->content);
2025 * Free one attribute, all the content is freed too
2050 * Unlink and free one attribute, all the content is freed too
2101 * @content: the PI content
2107 xmlNewDocPI(xmlDocPtr doc, const xmlChar *name, const xmlChar *content) {
2133 if (content != NULL) {
2134 cur->content = xmlStrdup(content);
2146 * @content: the PI content
2154 xmlNewPI(const xmlChar *name, const xmlChar *content) {
2155 return(xmlNewDocPI(NULL, name, content));
2247 * @content: the XML text content if any
2249 * Creation of a new node element within a document. @ns and @content
2251 * NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities
2260 const xmlChar *name, const xmlChar *content) {
2270 if (content != NULL) {
2271 cur->children = xmlStringGetNodeList(doc, content);
2284 * @content: the XML text content if any
2286 * Creation of a new node element within a document. @ns and @content
2288 * NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities
2297 xmlChar *name, const xmlChar *content) {
2303 if (content != NULL) {
2304 cur->children = xmlStringGetNodeList(doc, content);
2322 * @content: the text content if any
2324 * Creation of a new node element within a document. @ns and @content
2331 const xmlChar *name, const xmlChar *content) {
2337 if (content != NULL) {
2338 cur->children = xmlNewDocText(doc, content);
2377 * @content: the text content
2383 xmlNewText(const xmlChar *content) {
2398 if (content != NULL) {
2399 cur->content = xmlStrdup(content);
2413 * @content: the text content of the child if any.
2416 * @ns and @content parameters are optional (NULL). If @ns is NULL, the newly
2417 * created element inherits the namespace of @parent. If @content is non NULL,
2418 * a child TEXT node will be created containing the string @content.
2419 * NOTE: Use xmlNewChild() if @content will contain entities that need to be
2421 * reserved XML chars that might appear in @content, such as the ampersand,
2429 const xmlChar *name, const xmlChar *content) {
2453 cur = xmlNewDocRawNode(parent->doc, parent->ns, name, content);
2455 cur = xmlNewDocRawNode(parent->doc, ns, name, content);
2459 cur = xmlNewDocRawNode((xmlDocPtr) parent, NULL, name, content);
2461 cur = xmlNewDocRawNode((xmlDocPtr) parent, ns, name, content);
2463 cur = xmlNewDocRawNode( parent->doc, ns, name, content);
2573 cur->content = ent->content;
2591 * @content: the text content
2597 xmlNewDocText(xmlDocPtr doc, const xmlChar *content) {
2600 cur = xmlNewText(content);
2607 * @content: the text content
2610 * Creation of a new text node with an extra parameter for the content's length
2614 xmlNewTextLen(const xmlChar *content, int len) {
2629 if (content != NULL) {
2630 cur->content = xmlStrndup(content, len);
2641 * @content: the text content
2644 * Creation of a new text node with an extra content length parameter. The
2649 xmlNewDocTextLen(xmlDocPtr doc, const xmlChar *content, int len) {
2652 cur = xmlNewTextLen(content, len);
2659 * @content: the comment content
2665 xmlNewComment(const xmlChar *content) {
2680 if (content != NULL) {
2681 cur->content = xmlStrdup(content);
2692 * @content: the CDATA block content content
2699 xmlNewCDataBlock(xmlDocPtr doc, const xmlChar *content, int len) {
2714 if (content != NULL) {
2715 cur->content = xmlStrndup(content, len);
2726 * @content: the comment content
2732 xmlNewDocComment(xmlDocPtr doc, const xmlChar *content) {
2735 cur = xmlNewComment(content);
2795 * @content: the XML content of the child if any.
2798 * @ns and @content parameters are optional (NULL). If @ns is NULL, the newly
2799 * created element inherits the namespace of @parent. If @content is non NULL,
2801 * NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity
2809 const xmlChar *name, const xmlChar *content) {
2833 cur = xmlNewDocNode(parent->doc, parent->ns, name, content);
2835 cur = xmlNewDocNode(parent->doc, ns, name, content);
2839 cur = xmlNewDocNode((xmlDocPtr) parent, NULL, name, content);
2841 cur = xmlNewDocNode((xmlDocPtr) parent, ns, name, content);
2843 cur = xmlNewDocNode( parent->doc, ns, name, content);
2961 xmlNodeAddContent(cur, elem->content);
2969 tmp = xmlStrdup(elem->content);
2970 tmp = xmlStrcat(tmp, cur->next->content);
3041 tmp = xmlStrdup(elem->content);
3042 tmp = xmlStrcat(tmp, cur->content);
3050 xmlNodeAddContent(cur->prev, elem->content);
3123 xmlNodeAddContent(cur, elem->content);
3195 xmlNodeAddContent(parent->last, cur->content);
3265 * If cur is a TEXT node, merge its content with adjacent TEXT nodes
3270 (parent->content != NULL) &&
3272 xmlNodeAddContent(parent, cur->content);
3279 xmlNodeAddContent(parent->last, cur->content);
3303 (parent->content != NULL) &&
3305 xmlNodeAddContent(parent, cur->content);
3415 (cur->content != (xmlChar *) &(cur->properties))) {
3416 DICT_FREE(cur->content)
3486 (cur->content != NULL) &&
3490 (cur->content != (xmlChar *) &(cur->properties))) {
3491 DICT_FREE(cur->content)
3936 (node->content != NULL) &&
3940 ret->content = xmlStrdup(node->content);
4218 * Do a copy of the document info. If recursive, the content tree will
5011 xmlBufferCat(buffer, cur->content);
5021 if (tmp->content != NULL)
5022 xmlBufferCat(buffer, tmp->content);
5069 xmlBufferCat(buffer, tmp->content);
5078 xmlBufferCat(buffer, cur->content);
5089 /* an entity content can be any "well balanced chunk",
5090 * i.e. the result of the content [43] production:
5091 * http://www.w3.org/TR/REC-xml#NT-content
5141 * Returns a new #xmlChar * or NULL if no content is available.
5159 ret = buffer->content;
5160 buffer->content = NULL;
5168 if (cur->content != NULL)
5169 return (xmlStrdup(cur->content));
5187 ret = buffer->content;
5188 buffer->content = NULL;
5213 ret = buffer->content;
5214 buffer->content = NULL;
5235 if (cur->content != NULL)
5236 return (xmlStrdup(cur->content));
5245 * @content: the new value of the content
5247 * Replace the content of a node.
5248 * NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity
5253 xmlNodeSetContent(xmlNodePtr cur, const xmlChar *content) {
5266 cur->children = xmlStringGetNodeList(cur->doc, content);
5275 if ((cur->content != NULL) &&
5276 (cur->content != (xmlChar *) &(cur->properties))) {
5278 (xmlDictOwns(cur->doc->dict, cur->content))))
5279 xmlFree(cur->content);
5283 if (content != NULL) {
5284 cur->content = xmlStrdup(content);
5286 cur->content = NULL;
5321 * @content: the new value of the content
5322 * @len: the size of @content
5324 * Replace the content of a node.
5325 * NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity
5330 xmlNodeSetContentLen(xmlNodePtr cur, const xmlChar *content, int len) {
5343 cur->children = xmlStringLenGetNodeList(cur->doc, content, len);
5353 if ((cur->content != NULL) &&
5354 (cur->content != (xmlChar *) &(cur->properties))) {
5356 (xmlDictOwns(cur->doc->dict, cur->content))))
5357 xmlFree(cur->content);
5361 if (content != NULL) {
5362 cur->content = xmlStrndup(content, len);
5364 cur->content = NULL;
5395 * @content: extra content
5396 * @len: the size of @content
5398 * Append the extra substring to the node content.
5399 * NOTE: In contrast to xmlNodeSetContentLen(), @content is supposed to be
5404 xmlNodeAddContentLen(xmlNodePtr cur, const xmlChar *content, int len) {
5419 newNode = xmlNewTextLen(content, len);
5439 if (content != NULL) {
5440 if ((cur->content == (xmlChar *) &(cur->properties)) ||
5442 xmlDictOwns(cur->doc->dict, cur->content))) {
5443 cur->content = xmlStrncatNew(cur->content, content, len);
5448 cur->content = xmlStrncat(cur->content, content, len);
5471 * @content: extra content
5473 * Append the extra substring to the node content.
5474 * NOTE: In contrast to xmlNodeSetContent(), @content is supposed to be
5479 xmlNodeAddContent(xmlNodePtr cur, const xmlChar *content) {
5489 if (content == NULL) return;
5490 len = xmlStrlen(content);
5491 xmlNodeAddContentLen(cur, content, len);
5510 xmlNodeAddContent(first, second->content);
6232 return(xmlStrdup(prop->children->content));
6577 if (node->content == NULL) return(1);
6578 cur = node->content;
6590 * @content: the content
6591 * @len: @content length
6593 * Concat the given string at the end of the existing node content
6599 xmlTextConcat(xmlNodePtr node, const xmlChar *content, int len) {
6612 /* need to check if content is currently in the dictionary */
6613 if ((node->content == (xmlChar *) &(node->properties)) ||
6615 xmlDictOwns(node->doc->dict, node->content))) {
6616 node->content = xmlStrncatNew(node->content, content, len);
6618 node->content = xmlStrncat(node->content, content, len);
6621 if (node->content == NULL)
6650 ret->content = (xmlChar *) xmlMallocAtomic(ret->size * sizeof(xmlChar));
6651 if (ret->content == NULL) {
6656 ret->content[0] = 0;
6681 ret->content = (xmlChar *) xmlMallocAtomic(ret->size * sizeof(xmlChar));
6682 if (ret->content == NULL) {
6687 ret->content[0] = 0;
6689 ret->content = NULL;
6720 ret->content = (xmlChar *) mem;
6753 * Frees an XML buffer. It frees both the content and the structure which
6769 } else if ((buf->content != NULL) &&
6771 xmlFree(buf->content);
6785 if (buf->content == NULL) return;
6788 buf->content = BAD_CAST "";
6791 size_t start_buf = buf->content - buf->contentIO;
6794 buf->content = buf->contentIO;
6795 buf->content[0] = 0;
6797 buf->content[0] = 0;
6820 * we just move the content pointer, but also make sure
6823 buf->content += len;
6831 size_t start_buf = buf->content - buf->contentIO;
6833 memmove(buf->contentIO, &buf->content[0], buf->use);
6834 buf->content = buf->contentIO;
6835 buf->content[buf->use] = 0;
6840 memmove(buf->content, &buf->content[len], buf->use);
6841 buf->content[buf->use] = 0;
6879 size_t start_buf = buf->content - buf->contentIO;
6887 buf->content = newbuf + start_buf;
6889 newbuf = (xmlChar *) xmlRealloc(buf->content, size);
6894 buf->content = newbuf;
6919 if (buf->content == NULL) {
6922 "xmlBufferDump: buf->content == NULL\n");
6928 ret = fwrite(buf->content, sizeof(xmlChar), buf->use, file);
6936 * Function to extract the content of a buffer
6938 * Returns the internal content
6947 return buf->content;
6956 * Returns the length of data in the internal content
7010 start_buf = buf->content - buf->contentIO;
7014 memmove(buf->contentIO, buf->content, buf->use);
7015 buf->content = buf->contentIO;
7016 buf->content[buf->use] = 0;
7025 buf->content = rebuf + start_buf;
7028 if (buf->content == NULL) {
7031 rebuf = (xmlChar *) xmlRealloc(buf->content, newSize);
7040 memcpy(rebuf, buf->content, buf->use);
7041 xmlFree(buf->content);
7049 buf->content = rebuf;
7099 memmove(&buf->content[buf->use], str, len*sizeof(xmlChar));
7101 buf->content[buf->use] = 0;
7146 size_t start_buf = buf->content - buf->contentIO;
7152 buf->content -= len;
7153 memmove(&buf->content[0], str, len);
7167 memmove(&buf->content[len], &buf->content[0], buf->use);
7168 memmove(&buf->content[0], str, len);
7170 buf->content[buf->use] = 0;
7224 buf->content[buf->use++] = *cur;
7226 buf->content[buf->use] = 0;
7722 xmlDictOwns(sourceDoc->dict, cur->content)) { \
7724 cur->content = (xmlChar *) \
7725 xmlDictLookup(destDoc->dict, cur->content, -1); \
7727 cur->content = xmlStrdup(BAD_CAST cur->content); \
8290 * attribute values or element content.
8482 * Process content of element-nodes only.
8554 * values or element content.
8786 * This puts the content in the dest dict, only if
8789 XML_TREE_ADOPT_STR_2(cur->content)
8795 cur->content = NULL;
8805 cur->content = ent->content;
8813 XML_TREE_ADOPT_STR_2(cur->content)
8916 * values or element content.
9185 DICT_COPY(cur->content, clone->content);
9199 clone->content = ent->content;
9209 clone->content = cur->content;
9215 DICT_COPY(cur->content, clone->content);
9218 DICT_COPY(cur->content, clone->content);
9344 * At this point we are done with the node, its content
9498 * Walk content.
9508 XML_TREE_ADOPT_STR_2(cur->content)
9514 cur->content = NULL;
9524 cur->content = ent->content;
9571 * values or element content.
9645 XML_TREE_ADOPT_STR_2(node->content)
9651 node->content = NULL;
9661 node->content = ent->content;
9670 XML_TREE_ADOPT_STR_2(node->content)