14#include <zypp/base/String.h>
63 if ( rdelim == std::string::npos )
72 if ( delim == std::string::npos )
75 Arch arch( str_r.substr( delim+1, rdelim-delim-1 ) );
79 delim = str_r.rfind(
"-", rdelim );
80 if ( delim == std::string::npos )
83 if ( delim == rdelim-1 )
86 delim = str_r.rfind(
"-", delim-1 );
87 if ( delim == std::string::npos )
90 Edition ed( str_r.substr( delim+1, rdelim-delim-1 ) );
93 std::string identstring( str_r.substr( namespaceOff, delim-namespaceOff ) );
const char * c_str() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Edition represents [epoch:]version[-release]
std::string version() const
Version.
std::string release() const
Release.
const char * c_str() const
Access to the sat-pools string space.
const char * c_str() const
Conversion to const char *
std::string getIdFor(sat::Solvable slv_r) const
Solvable to InstanceId string.
bool isSystemId(const std::string str_r) const
Quick test whether the InstanceId string would refer to a system (installed) Solvable.
PoolItem findPoolItem(const std::string str_r) const
InstanceId string to PoolItem.
Combining sat::Solvable and ResStatus.
std::string alias() const
Short unique string to identify a repo.
static const std::string & systemRepoAlias()
Reserved system repository alias @System .
static const ResKind srcpackage
static ResPool instance()
Singleton ctor.
byIdent_iterator byIdentBegin(const ByIdent &ident_r) const
byIdent_iterator byIdentEnd(const ByIdent &ident_r) const
static Pool instance()
Singleton ctor.
Helper that splits an identifier into kind and name or vice versa.
A Solvable object within the sat Pool.
Edition edition() const
The edition (version-release).
Arch arch() const
The architecture.
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
IdString ident() const
The identifier.
Repository repository() const
The Repository this Solvable belongs to.
bool hasSuffix(const C_Str &str_r, const C_Str &suffix_r)
Return whether str_r has suffix suffix_r.
bool hasPrefix(const C_Str &str_r, const C_Str &prefix_r)
Return whether str_r has prefix prefix_r.
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
Easy-to use interface to the ZYPP dependency resolver.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.