32#include <Pt/Xml/Api.h>
66 return _prefix.empty() && _name.empty();
71 inline std::size_t
size()
const
73 return _prefix.size() + _name.size();
127 return a.
prefix() == b.
prefix() && a.name() == b.name();
136 return a.
prefix() != b.
prefix() || a.name() != b.name();
Unicode capable basic_string.
Definition Api-String.h:67
bool operator!=(const QName &a, const QName &b)
Returns true if not equal.
Definition QName.h:134
bool operator<(const QName &a, const QName &b)
Returns true if less.
Definition QName.h:143
QName()
Constructs an empty qualified name.
Definition QName.h:51
void setLocal(const String &name)
Sets the local name.
Definition QName.h:113
bool operator==(const QName &a, const QName &b)
Returns true if equal.
Definition QName.h:125
bool empty() const
Returns true if empty.
Definition QName.h:64
void setPrefix(const String &prefix)
Sets the namespace prefix.
Definition QName.h:88
const String & prefix() const
Returns the namespace prefix.
Definition QName.h:83
const String & local() const
Returns the local name.
Definition QName.h:108
String & local()
Returns the local name.
Definition QName.h:103
String & prefix()
Returns the namespace prefix.
Definition QName.h:78
void clear()
Clears all content.
Definition QName.h:56
std::size_t size() const
Returns the size of the prefix and local part.
Definition QName.h:71
Read and write XML ducuments.
Core module.
Definition Allocator.h:33