12#ifndef ZYPP_PARSER_XML_XMLSTRING_H
13#define ZYPP_PARSER_XML_XMLSTRING_H
18#include <zypp/base/PtrTypes.h>
21#include <zypp/parser/xml/XmlEscape.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() ); }
bool operator==(const std::string &rhs) const
shared_ptr< const xmlChar > _xmlstr
Wraps the xmlChar *.
std::string asString() const
Explicit conversion to std::string.
bool operator!=(const std::string &rhs) const
bool operator==(const XmlString &rhs) const
const xmlChar * get() const
Access the xmlChar *.
const char * c_str() const
Explicit conversion to const char *.
bool operator!=(const XmlString &rhs) const
bool operator==(const char *const rhs) const
bool operator!=(const char *const rhs) const
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const ReadState &obj)
Easy-to use interface to the ZYPP dependency resolver.
shared_ptr custom deleter calling xmlFree.
void operator()(const xmlChar *xmlstr_r) const