Fcitx
|
Provide a Semantic version 2.0 implementation. More...
#include <fcitx-utils/semver.h>
Public Member Functions | |
FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE (SemanticVersion) | |
std::string | toString () const |
FCITX_DECLARE_PROPERTY (uint32_t,(major), setMajor) | |
FCITX_DECLARE_PROPERTY (uint32_t,(minor), setMinor) | |
FCITX_DECLARE_PROPERTY (uint32_t, patch, setPatch) | |
FCITX_DECLARE_PROPERTY (std::vector< PreReleaseId >, preReleaseIds, setPreReleaseIds) | |
FCITX_DECLARE_PROPERTY (std::vector< std::string >, buildIds, setBuildIds) | |
bool | isPreRelease () const |
int | compare (const SemanticVersion &other) const noexcept |
Static Public Member Functions | |
static std::optional< SemanticVersion > | parse (std::string_view data) |