13#include <boost/mpl/int.hpp>
14#include <boost/utility/string_ref.hpp>
28 using zyppng::sat::StringPool;
33 :
_id( ::pool_str2id(
StringPool::instance().getPool() , str_r, true ) )
37 :
_id( ::pool_strn2id(
StringPool::instance().getPool(), str_r, len_r, true ) )
45 :
IdString( str_r.data(), str_r.length() )
49 { return ::strlen(
c_str() ); }
73 return ::strcmp(
c_str(), rhs );
88 return str <<
'(' << obj.
id() <<
')' << obj.
c_str();
Access to the sat-pools string space.
unsigned size() const
The strings size.
const char * c_str() const
Conversion to const char *.
int compare(const IdString &rhs) const
Compare IdString returning -1,0,1.
IdType id() const
Expert backdoor.
static const IdString Null
No or Null string ( Id 0 ).
static const IdString Empty
Empty string.
constexpr IdString()
Default ctor, empty string.
static StringPool & instance()
Access the global StringPool instance.
Singleton manager for the underlying libsolv string pool.
String related utilities and Regular expression matching.
static const IdType emptyId(1)
static const IdType noId(0)
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
relates: Capability Detailed stream output
std::ostream & operator<<(std::ostream &str, const Capabilities &obj)
relates: Capabilities Stream output