From 8286ac511144e4f17d34eac9affb97e50646344a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 23 Jul 2014 15:25:44 +0200 Subject: Imported Upstream version 4.0.0 --- libcutl/cutl/xml/qname.cxx | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 libcutl/cutl/xml/qname.cxx (limited to 'libcutl/cutl/xml/qname.cxx') diff --git a/libcutl/cutl/xml/qname.cxx b/libcutl/cutl/xml/qname.cxx new file mode 100644 index 0000000..a32add2 --- /dev/null +++ b/libcutl/cutl/xml/qname.cxx @@ -0,0 +1,35 @@ +// file : cutl/xml/qname.cxx +// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#include + +#include + +using namespace std; + +namespace cutl +{ + 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 (); + } + } +} -- cgit v1.2.3