|
|
Donner
C++20 SVG rendering library
|
Reference type for XMLQualifiedName, to pass the value to APIs without needing to allocate an RcString. More...
#include "donner/base/xml/XMLQualifiedName.h"
Public Member Functions | |
| constexpr | XMLQualifiedNameRef (const RcStringOrRef &name) |
| Construct from an attribute name as a string_view, assumes no namespacePrefix. | |
| constexpr | XMLQualifiedNameRef (const char *name) |
| Construct from an attribute name as a const char*, assumes no namespacePrefix. | |
| constexpr | XMLQualifiedNameRef (std::string_view name) |
Construct from an attribute name as a std::string_view, assumes no namespacePrefix. | |
| constexpr | XMLQualifiedNameRef (const RcStringOrRef &namespacePrefix, const RcStringOrRef &name) |
| Construct from an attribute with a namespace prefix. | |
| constexpr | XMLQualifiedNameRef (const XMLQualifiedName &attr) |
| Construct from XMLQualifiedName. | |
| XMLQualifiedNameRef (XMLQualifiedNameRef &&)=default | |
| Move constructor. | |
| XMLQualifiedNameRef (const XMLQualifiedNameRef &)=default | |
| Copy constructor. | |
| ~XMLQualifiedNameRef ()=default | |
| Destructor. | |
| XMLQualifiedNameRef & | operator= (XMLQualifiedNameRef &&)=default |
| Move assignment operator. | |
| XMLQualifiedNameRef & | operator= (const XMLQualifiedNameRef &)=default |
| Copy assignment operator. | |
| std::strong_ordering | operator<=> (const XMLQualifiedNameRef &other) const |
| Comparison operator. | |
| bool | operator== (const XMLQualifiedNameRef &other) const=default |
| Equality operator for gtest. | |
| std::string | toString () const |
| Convert to string operator, using XML syntax (e.g. "ns:name"). | |
| details::DeferredCssSyntaxPrinter< XMLQualifiedNameRef > | printCssSyntax () const |
| When used in an ostream output stream, prints the qualified name as a CSS selector (e.g. | |
Public Attributes | |
| RcStringOrRef | namespacePrefix |
| The namespace prefix of the attribute, or an empty string if no namespace (default namespace). | |
| RcStringOrRef | name |
| The attribute name. | |
Friends | |
| std::strong_ordering | operator<=> (const XMLQualifiedNameRef &lhs, const XMLQualifiedName &rhs) |
| Friend operator for XMLQualifiedName comparison. | |
| std::strong_ordering | operator<=> (const XMLQualifiedName &lhs, const XMLQualifiedNameRef &rhs) |
| Friend operator for XMLQualifiedName comparison. | |
| bool | operator== (const XMLQualifiedName &lhs, const XMLQualifiedNameRef &rhs) |
| Friend operator for XMLQualifiedName equality for gtest. | |
| bool | operator== (const XMLQualifiedNameRef &lhs, const XMLQualifiedName &rhs) |
| Friend operator for XMLQualifiedName equality for gtest. | |
| std::ostream & | operator<< (std::ostream &os, const XMLQualifiedNameRef &obj) |
| Ostream output operator, using XML syntax (e.g. "ns:name"). | |
Reference type for XMLQualifiedName, to pass the value to APIs without needing to allocate an RcString.
|
inlineconstexpr |
Construct from an attribute name as a string_view, assumes no namespacePrefix.
| name | The attribute name. |
|
inlineconstexpr |
Construct from an attribute name as a const char*, assumes no namespacePrefix.
| name | The attribute name. |
|
inlineconstexpr |
Construct from an attribute name as a std::string_view, assumes no namespacePrefix.
| name | The attribute name. |
|
inlineconstexpr |
Construct from an attribute with a namespace prefix.
| namespacePrefix | The namespace of the name, or empty if the name belongs to the default namespace. |
| name | The attribute name. |
|
inline |
When used in an ostream output stream, prints the qualified name as a CSS selector (e.g.
"ns|name").
Example usage: