25 #ifdef HAVE_CONFIG_H //
33 Qname (
const std::string & name);
36 std::string getLocalName (
void)
const;
37 std::string getPrefix (
void)
const;
38 std::string getNamespace (
void)
const;
39 void setNamespace (std::string uri);
40 bool operator== (
const Qname & qn)
const;
41 void operator= (
const std::string & name);
44 void parse (
const std::string & name);
45 std::string namespaceUri, localname, prefix;
57 localname = qn.localname;
59 namespaceUri = qn.namespaceUri;
114 Qname::parse (
const std::string & name)
119 cut = name.find (
":");
120 if (cut == -1 || cut == 0)
126 localname = name.substr (cut + 1);
127 prefix = name.substr (0, cut);
129 cut = localname.find (
"[]");
131 localname = localname.substr (0, cut);