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 ) );
101 if ( solv.repository() == repo && solv.arch() == arch && solv.edition() == ed )
Repository repository() const
The Repository this Solvable belongs to.
A Solvable object within the sat Pool.
std::string alias() const
Short unique string to identify a repo.
IdString ident() const
The identifier.
PoolItem findPoolItem(const std::string str_r) const
InstanceId string to PoolItem.
std::string release() const
Release.
static const ResKind srcpackage
Access to the sat-pools string space.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
Edition represents [epoch:]version[-release]
byIdent_iterator byIdentEnd(const ByIdent &ident_r) const
static Pool instance()
Singleton ctor.
bool isSystemId(const std::string str_r) const
Quick test whether the InstanceId string would refer to a system (installed) Solvable.
std::string version() const
Version.
const char * c_str() const
Conversion to const char *
const char * c_str() const
std::string form(const char *format,...)
Printf style construction of std::string.
const char * c_str() const
bool hasSuffix(const C_Str &str_r, const C_Str &suffix_r)
Return whether str_r has suffix suffix_r.
Helper that splits an identifier into kind and name or vice versa.
Reference to a PoolItem connecting ResObject and ResStatus.
static const std::string & systemRepoAlias()
Reserved system repository alias .
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
byIdent_iterator byIdentBegin(const ByIdent &ident_r) const
bool hasPrefix(const C_Str &str_r, const C_Str &prefix_r)
Return whether str_r has prefix prefix_r.
std::string getIdFor(sat::Solvable slv_r) const
Solvable to InstanceId string.
static ResPool instance()
Singleton ctor.