29 #ifndef Pt_Xml_QName_h
30 #define Pt_Xml_QName_h
32 #include <Pt/Xml/Api.h>
33 #include <Pt/String.h>
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();
153 #endif // Pt_Xml_QName_h
size_type size() const
Returns the length of the string.
Definition: String.h:239
bool operator<(const QName &a, const QName &b)
Returns true if less.
Definition: QName.h:143
const String & local() const
Returns the local name.
Definition: QName.h:108
A qualified XML name.
Definition: QName.h:46
String & prefix()
Returns the namespace prefix.
Definition: QName.h:78
bool empty() const
Returns true if empty.
Definition: QName.h:64
void clear()
Clears the string.
Definition: String.h:367
void setLocal(const String &name)
Sets the local name.
Definition: QName.h:113
QName()
Constructs an empty qualified name.
Definition: QName.h:51
bool empty() const
Returns true if empty.
Definition: String.h:244
const String & prefix() const
Returns the namespace prefix.
Definition: QName.h:83
std::size_t size() const
Returns the size of the prefix and local part.
Definition: QName.h:71
Unicode capable basic_string.
Definition: String.h:42
void setPrefix(const String &prefix)
Sets the namespace prefix.
Definition: QName.h:88
void clear()
Clears all content.
Definition: QName.h:56
String & local()
Returns the local name.
Definition: QName.h:103