Lines Matching refs:lastChild
2508 xmlNodePtr lastChild; in xmlSAX2Text() local
2528 lastChild = ctxt->node->last; in xmlSAX2Text()
2538 if (lastChild == NULL) { in xmlSAX2Text()
2540 lastChild = xmlSAX2TextNode(ctxt, ch, len); in xmlSAX2Text()
2542 lastChild = xmlNewCDataBlock(ctxt->myDoc, ch, len); in xmlSAX2Text()
2543 if (lastChild != NULL) { in xmlSAX2Text()
2544 ctxt->node->children = lastChild; in xmlSAX2Text()
2545 ctxt->node->last = lastChild; in xmlSAX2Text()
2546 lastChild->parent = ctxt->node; in xmlSAX2Text()
2547 lastChild->doc = ctxt->node->doc; in xmlSAX2Text()
2555 int coalesceText = (lastChild != NULL) && in xmlSAX2Text()
2556 (lastChild->type == type) && in xmlSAX2Text()
2558 (lastChild->name == xmlStringText)); in xmlSAX2Text()
2567 if (lastChild->content == (xmlChar *)&(lastChild->properties)) { in xmlSAX2Text()
2568 lastChild->content = xmlStrdup(lastChild->content); in xmlSAX2Text()
2569 lastChild->properties = NULL; in xmlSAX2Text()
2571 (xmlDictOwns(ctxt->dict, lastChild->content))) { in xmlSAX2Text()
2572 lastChild->content = xmlStrdup(lastChild->content); in xmlSAX2Text()
2574 if (lastChild->content == NULL) { in xmlSAX2Text()
2594 newbuf = (xmlChar *) xmlRealloc(lastChild->content,size); in xmlSAX2Text()
2600 lastChild->content = newbuf; in xmlSAX2Text()
2602 memcpy(&lastChild->content[ctxt->nodelen], ch, len); in xmlSAX2Text()
2604 lastChild->content[ctxt->nodelen] = 0; in xmlSAX2Text()
2606 if (xmlTextConcat(lastChild, ch, len)) { in xmlSAX2Text()
2610 ctxt->nodelen = xmlStrlen(lastChild->content); in xmlSAX2Text()
2616 lastChild = xmlSAX2TextNode(ctxt, ch, len); in xmlSAX2Text()
2618 lastChild = xmlNewCDataBlock(ctxt->myDoc, ch, len); in xmlSAX2Text()
2619 if (lastChild != NULL) { in xmlSAX2Text()
2620 xmlAddChild(ctxt->node, lastChild); in xmlSAX2Text()