Go to the documentation of this file.
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
bool operator!=(const char *const rhs) const
void operator()(const xmlChar *xmlstr_r) const
std::string asString() const
Explicit conversion to std::string.
bool operator!=(const XmlString &rhs) const
bool operator!=(const std::string &rhs) const
std::ostream & operator<<(std::ostream &str, const ReadState &obj)
const xmlChar * get() const
Access the xmlChar *.
bool operator==(const XmlString &rhs) const
Easy-to use interface to the ZYPP dependency resolver.
const char * c_str() const
Explicit conversion to const char *.
shared_ptr custom deleter calling xmlFree.
shared_ptr< const xmlChar > _xmlstr
Wraps the xmlChar *.
bool operator==(const char *const rhs) const
String related utilities and Regular expression matching.
XmlString(const xmlChar *const xmlstr_r=NULL, OnDelete ondelete_r=NOFREE)
Ctor from xmlChar.
bool operator==(const std::string &rhs) const