Fcitx
Public Member Functions | Static Public Member Functions | List of all members
fcitx::SemanticVersion Class Reference

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< SemanticVersionparse (std::string_view data)
 

Detailed Description

Provide a Semantic version 2.0 implementation.

Since
5.0.6

Definition at line 46 of file semver.h.


The documentation for this class was generated from the following files: