12 #ifndef ZYPP_PARSER_XML_XMLSTRING_H
13 #define ZYPP_PARSER_XML_XMLSTRING_H
46 { xmlFree( (
void*)(xmlstr_r) ); }
57 XmlString(
const xmlChar *
const xmlstr_r = NULL,
61 const xmlChar *
get()
const
69 operator const xmlChar * ()
const
74 {
return reinterpret_cast<const char *const
>(
get()); }
85 {
return( rhs ==
c_str() ); }
88 {
return( rhs !=
c_str() ); }
118 #endif // ZYPP_PARSER_XML_XMLSTRING_H
shared_ptr custom deleter calling xmlFree.
bool operator!=(const char *const rhs) const
bool operator==(const XmlString &rhs) const
const char * c_str() const
Explicit conversion to const char *.
bool operator!=(const XmlString &rhs) const
bool operator!=(const std::string &rhs) const
std::string asString() const
Explicit conversion to std::string.
bool operator==(const std::string &rhs) const
void operator()(const xmlChar *xmlstr_r) const
bool operator==(const char *const rhs) const
std::ostream & operator<<(std::ostream &str, const ReadState &obj)
shared_ptr< const xmlChar > _xmlstr
Wraps the xmlChar *.
XmlString(const xmlChar *const xmlstr_r=NULL, OnDelete ondelete_r=NOFREE)
Ctor from xmlChar.