|
| Edition () |
| Default ctor: noedition. More...
|
|
| Edition (IdString::IdType id_r) |
| Ctor taking edition as string. More...
|
|
| Edition (const IdString &idstr_r) |
|
| Edition (const std::string &str_r) |
|
| Edition (const char *cstr_r) |
|
| Edition (const std::string &version_r, const std::string &release_r, epoch_t epoch_r=noepoch) |
| Ctor taking version_r, release_r and optional epoch_r. More...
|
|
| Edition (const char *version_r, const char *release_r, epoch_t epoch_r=noepoch) |
|
| Edition (const std::string &version_r, const std::string &release_r, const std::string &epoch_r) |
| Ctor taking version_r, release_r and optional epoch_r as string. More...
|
|
| Edition (const char *version_r, const char *release_r, const char *epoch_r) |
|
epoch_t | epoch () const |
| Epoch. More...
|
|
std::string | version () const |
| Version. More...
|
|
std::string | release () const |
| Release. More...
|
|
const IdString & | idStr () const |
|
bool | empty () const |
|
unsigned | size () const |
|
const char * | c_str () const |
|
std::string | asString () const |
|
IdType | id () const |
|
| operator bool () const |
| Evaluate in a boolean context ( ! empty() ) . More...
|
|
int | compare (const Edition &rhs) const |
|
int | compare (const IdStringType &rhs) const |
|
int | compare (const IdString &rhs) const |
|
int | compare (const std::string &rhs) const |
|
int | compare (const char *rhs) const |
|
|
Match two Editions returning -1,0,1 , treating empty version/release strings as ANY .
|
int | match (const Edition &rhs) const |
|
int | match (const IdString &rhs) const |
|
int | match (const std::string &rhs) const |
|
int | match (const char *rhs) const |
|
static int | match (const Edition &lhs, const Edition &rhs) |
|
static int | match (const Edition &lhs, const IdString &rhs) |
|
static int | match (const Edition &lhs, const std::string &rhs) |
|
static int | match (const Edition &lhs, const char *rhs) |
|
static int | match (const IdString &lhs, const Edition &rhs) |
|
static int | match (const IdString &lhs, const IdString &rhs) |
|
static int | match (const IdString &lhs, const std::string &rhs) |
|
static int | match (const IdString &lhs, const char *rhs) |
|
static int | match (const std::string &lhs, const Edition &rhs) |
|
static int | match (const std::string &lhs, const IdString &rhs) |
|
static int | match (const std::string &lhs, const std::string &rhs) |
|
static int | match (const std::string &lhs, const char *rhs) |
|
static int | match (const char *lhs, const Edition &rhs) |
|
static int | match (const char *lhs, const IdString &rhs) |
|
static int | match (const char *lhs, const std::string &rhs) |
|
static int | match (const char *lhs, const char *rhs) |
|
|
static int | compare (const Edition &lhs, const Edition &rhs) |
|
static int | compare (const Edition &lhs, const IdString &rhs) |
|
static int | compare (const Edition &lhs, const std::string &rhs) |
|
static int | compare (const Edition &lhs, const char *rhs) |
|
static int | compare (const IdString &lhs, const Edition &rhs) |
|
static int | compare (const IdString &lhs, const IdString &rhs) |
|
static int | compare (const IdString &lhs, const std::string &rhs) |
|
static int | compare (const IdString &lhs, const char *rhs) |
|
static int | compare (const std::string &lhs, const Edition &rhs) |
|
static int | compare (const std::string &lhs, const IdString &rhs) |
|
static int | compare (const std::string &lhs, const std::string &rhs) |
|
static int | compare (const std::string &lhs, const char *rhs) |
|
static int | compare (const char *lhs, const Edition &rhs) |
|
static int | compare (const char *lhs, const IdString &rhs) |
|
static int | compare (const char *lhs, const std::string &rhs) |
|
static int | compare (const char *lhs, const char *rhs) |
|
| IdStringType () |
|
| IdStringType (const IdStringType &) |
|
void | operator= (const IdStringType &) |
|
| ~IdStringType () |
|
static PoolImpl & | myPool () |
|
Edition represents [epoch:]version[-release]
epoch
(optional) number, Edition::noepoch if not supplied
version
(required) string, may not contain '-'
release
(optional) string, may not contain '-'
Comparison is actually g_BackendSpecific.
- RPM: Edition are ordered according to
epoch
, then version
, then release
. Version and release strings are compared by splitting them into segments of alpha or digit sequences. Segments are compared according to their type. On mixed types a string compares less than a number.
- Attention
- operator< defines equivalence classes of version strings, as non alphanumeric chars are ignored. That' why
1.0
and 1_0
compare equal in the example.
-
Edition::match compares two editions, treating empty version or release strings as wildcard. Thus match is not transitive, and you don't want to use it to order keys in a a std::container.
Definition at line 60 of file Edition.h.