semver-utils
1.1.0
|
Main libsemver
source file.
More...
#include "libsemver.h"
#include "errors.h"
#include "../c++/version.hpp"
#include "../gettext_defs.h"
#include <exception>
#include <cstdlib>
Functions | |
static void | semver_set_last_error (int err) |
static void | semver_reset_last_error () |
int | semver_last_error () |
semver_t * | semver_from_string (const char *str) |
semver_t * | semver_create (const unsigned int *c_vers, const unsigned long c_vers_num, const char *prerelease, const char *metadata) |
void | semver_free (semver_t *ver) |
const char * | semver_str (semver_t *ver) |
unsigned int * | semver_get_versions (semver_t *ver) |
unsigned int | semver_get_version (semver_t *ver, unsigned int index) |
const char * | semver_get_prerelease (semver_t *ver) |
const char * | semver_get_metadata (semver_t *ver) |
semver_t * | semver_bump_major (semver_t *ver) |
semver_t * | semver_bump_minor (semver_t *ver) |
semver_t * | semver_bump_patch (semver_t *ver) |
semver_t * | semver_bump (semver_t *ver, unsigned int index) |
semver_t * | semver_strip_prerelease (semver_t *ver) |
semver_t * | semver_strip_metadata (semver_t *ver) |
bool | semver_is_release (semver_t *ver) |
bool | semver_equals (semver_t *lh, semver_t *rh) |
bool | semver_is_less (semver_t *lh, semver_t *rh) |
bool | semver_is_greater (semver_t *lh, semver_t *rh) |
Variables | |
static THREAD_LOCAL int | last_error |
Main libsemver
source file.