libzypp
13.10.6
|
Helper that splits an identifier into kind and name or vice versa. More...
#include <Solvable.h>
Public Member Functions | |
SplitIdent () | |
SplitIdent (IdString ident_r) | |
SplitIdent (const char *ident_r) | |
SplitIdent (const std::string &ident_r) | |
SplitIdent (ResKind kind_r, IdString name_r) | |
SplitIdent (ResKind kind_r, const C_Str &name_r) | |
IdString | ident () const |
ResKind | kind () const |
IdString | name () const |
Static Public Member Functions | |
static ResKind | explicitKind (IdString ident_r) |
Return an idents explicit kind prefix, or ResKind() if none. More... | |
static ResKind | explicitKind (const char *ident_r) |
static ResKind | explicitKind (const std::string &ident_r) |
Private Attributes | |
IdString | _ident |
ResKind | _kind |
IdString | _name |
Helper that splits an identifier into kind and name or vice versa.
name_r
is preceded by a well known kind spec, the kind_r
argument is ignored, and kind is derived from name. Definition at line 264 of file Solvable.h.
|
inline |
Definition at line 267 of file Solvable.h.
zypp::sat::Solvable::SplitIdent::SplitIdent | ( | IdString | ident_r | ) |
Definition at line 69 of file Solvable.cc.
zypp::sat::Solvable::SplitIdent::SplitIdent | ( | const char * | ident_r | ) |
Definition at line 73 of file Solvable.cc.
zypp::sat::Solvable::SplitIdent::SplitIdent | ( | const std::string & | ident_r | ) |
Definition at line 77 of file Solvable.cc.
Definition at line 81 of file Solvable.cc.
Definition at line 86 of file Solvable.cc.
|
inline |
Definition at line 274 of file Solvable.h.
|
inline |
Definition at line 275 of file Solvable.h.
|
inline |
Definition at line 276 of file Solvable.h.
Return an idents explicit kind prefix, or ResKind() if none.
Mainly to detect whether a given ident string is explicitly prefixed by a known kind (e.g pattern:foo
or package:foo
).
Definition at line 282 of file Solvable.h.
|
static |
Definition at line 91 of file Solvable.cc.
|
inlinestatic |
Definition at line 284 of file Solvable.h.
|
private |
Definition at line 287 of file Solvable.h.
|
private |
Definition at line 288 of file Solvable.h.
|
private |
Definition at line 289 of file Solvable.h.