LLC2_API
|
Functions | |
XMLDLLENTRY XMLSTR | stringDup (XMLCSTR source, int cbData=-1) |
Duplicate (copy in a new allocated buffer) the source string. | |
XMLDLLENTRY void | freeXMLString (XMLSTR t) |
to free the string allocated inside the "stringDup" function or the "createXMLString" function. |
XMLDLLENTRY void freeXMLString | ( | XMLSTR | t | ) |
to free the string allocated inside the "stringDup" function or the "createXMLString" function.
Definition at line 73 of file xmlParser.cpp.
XMLDLLENTRY XMLSTR stringDup | ( | XMLCSTR | source, |
int | cbData = -1 |
||
) |
Duplicate (copy in a new allocated buffer) the source string.
This is a very handy function when used with all the "XMLNode::*_WOSD" functions (xmlWOSD).
cbData | If !=0 then cbData is the number of chars to duplicate. New strings allocated with this function should be free'd using the "freeXMLString" function. |
Definition at line 667 of file xmlParser.cpp.
References XMLCHAR, XMLSTR, and xstrlen().
Referenced by XMLNode::addAttribute(), XMLNode::addChild(), XMLNode::addClear(), XMLNode::addText(), XMLNode::createXMLTopNode(), XMLNode::deepCopy(), XMLNode::getChildNodeByPath(), XMLNode::updateAttribute(), XMLNode::updateAttribute_WOSD(), XMLNode::updateClear(), XMLNode::updateName(), and XMLNode::updateText().