Reference type for XMLQualifiedName, to pass the value to APIs without needing to allocate an RcString.
More...
#include "donner/base/xml/XMLQualifiedName.h"
|
|
RcStringOrRef | namespacePrefix |
| | The namespace prefix of the attribute, or an empty string if no namespace (default namespace).
|
|
RcStringOrRef | name |
| | The attribute name.
|
Reference type for XMLQualifiedName, to pass the value to APIs without needing to allocate an RcString.
◆ XMLQualifiedNameRef() [1/4]
| donner::xml::XMLQualifiedNameRef::XMLQualifiedNameRef |
( |
const RcStringOrRef & | name | ) |
|
|
inlineconstexpr |
Construct from an attribute name as a string_view, assumes no namespacePrefix.
- Parameters
-
◆ XMLQualifiedNameRef() [2/4]
| donner::xml::XMLQualifiedNameRef::XMLQualifiedNameRef |
( |
const char * | name | ) |
|
|
inlineconstexpr |
Construct from an attribute name as a const char*, assumes no namespacePrefix.
- Parameters
-
◆ XMLQualifiedNameRef() [3/4]
| donner::xml::XMLQualifiedNameRef::XMLQualifiedNameRef |
( |
std::string_view | name | ) |
|
|
inlineconstexpr |
Construct from an attribute name as a std::string_view, assumes no namespacePrefix.
- Parameters
-
◆ XMLQualifiedNameRef() [4/4]
Construct from an attribute with a namespace prefix.
- Parameters
-
| namespacePrefix | The namespace of the name, or empty if the name belongs to the default namespace. |
| name | The attribute name. |
◆ printCssSyntax()
| details::DeferredCssSyntaxPrinter< XMLQualifiedNameRef > donner::xml::XMLQualifiedNameRef::printCssSyntax |
( |
| ) |
const |
|
inline |
When used in an ostream output stream, prints the qualified name as a CSS selector (e.g.
"ns|name").
Example usage:
std::cout <<
name.printCssSyntax() <<
"\n";
constexpr XMLQualifiedNameRef(const RcStringOrRef &name)
Construct from an attribute name as a string_view, assumes no namespacePrefix.
Definition XMLQualifiedName.h:149
RcStringOrRef name
The attribute name.
Definition XMLQualifiedName.h:142
The documentation for this struct was generated from the following file: