Wearable export improvements.

Add grid nick to default filename.
Add grid nick and date to exported XML.
Add inventory path, name and description of item to exported XML.
This commit is contained in:
Aleric Inglewood
2013-07-19 21:22:59 +02:00
parent 1fdb36cc40
commit 325ef60a8c
12 changed files with 189 additions and 55 deletions

View File

@@ -2569,6 +2569,19 @@ std::string LLXMLNode::escapeXML(const std::string& xml)
return out;
}
// Replace '--' with '- -', see http://en.wikipedia.org/wiki/XML#Comments
// static
std::string LLXMLNode::commentEscape(std::string const& comment)
{
std::string result = comment;
std::string::size_type off = std::string::npos;
while ((off = result.rfind("--", off)) != std::string::npos)
{
result.replace(off, 2, "- -");
}
return result;
}
void LLXMLNode::setStringValue(U32 length, const std::string *strings)
{
if (length == 0) return;