1
0
mirror of https://github.com/pocoproject/poco.git synced 2025-03-28 09:32:52 +01:00
2015-08-22 17:36:39 +02:00

35 lines
462 B
C++

// file : cutl/xml/QName.cxx
// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
// license : MIT; see accompanying LICENSE file
#include "Poco/XML/QName.h"
#include <ostream>
using namespace std;
namespace Poco
{
namespace XML
{
string QName::string() const
{
std::string r;
if (!ns_.empty())
{
r += ns_;
r += '#';
}
r += name_;
return r;
}
ostream& operator<<(ostream& os, const QName& qn)
{
return os << qn.string();
}
}
}