|
| | Edition () |
| | Default ctor: noedition.
|
| |
| | Edition (IdString::IdType id_r) |
| | Ctor taking edition as string.
|
| |
| | 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.
|
| |
| | Edition (const char *version_r, const char *release_r, epoch_t epoch_r=noepoch) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| | 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.
|
| |
| | Edition (const char *version_r, const char *release_r, const char *epoch_r) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| epoch_t | epoch () const |
| | Epoch.
|
| |
| std::string | version () const |
| | Version.
|
| |
| std::string | release () const |
| | Release.
|
| |
| 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 ( !
|
| |
| | operator IdString () const |
| | Explicit conversion to IdString.
|
| |
| | operator std::string () const |
| | Explicit conversion to std::string.
|
| |
| 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 |
| |
|
(Note that these are not member symbols.)
|
| std::ostream & | dumpAsXmlOn (std::ostream &str, const Edition &obj) |
| | XML output.
|
| |
| std::ostream & | operator<< (std::ostream &str, const IdStringType< Edition > &obj) |
| | Stream output.
|
| |
| bool | operator== (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | Equal.
|
| |
| bool | operator!= (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | NotEqual.
|
| |
| bool | operator< (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | Less.
|
| |
| bool | operator<= (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | LessEqual.
|
| |
| bool | operator> (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | Greater.
|
| |
| bool | operator>= (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | GreaterEqual.
|
| |
| std::ostream & | operator<< (std::ostream &str, const IdStringType< Edition > &obj) |
| | Stream output.
|
| |
| bool | operator== (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | Equal.
|
| |
| bool | operator!= (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | NotEqual.
|
| |
| bool | operator< (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | Less.
|
| |
| bool | operator<= (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | LessEqual.
|
| |
| bool | operator> (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | Greater.
|
| |
| bool | operator>= (const IdStringType< Edition > &lhs, const IdStringType< Edition > &rhs) |
| | GreaterEqual.
|
| |
|
Match two Editions returning -1,0,1, treating empty version/release strings as ANY.
|
| using | MatchRange = Range<Edition, Match> |
| | Edition Range based on Match.
|
| |
| class | IdStringType< Edition > |
| |
| IdString | _str |
| |
| 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 | _doCompare (const char *lhs, const char *rhs) ZYPP_API |
| |
| static int | _doMatch (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 ()=default |
| |
| | IdStringType (const IdStringType &)=default |
| |
| | IdStringType (IdStringType &&) noexcept=default |
| |
| IdStringType & | operator= (const IdStringType &)=default |
| |
| IdStringType & | operator= (IdStringType &&) noexcept=default |
| |
| | ~IdStringType ()=default |
| |
| 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 \reg 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.
static int compare(const Edition &lhs, const Edition &rhs)
- 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.