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