libsemver  1.0.0
Macros | Functions | Variables
libsemver.cpp File Reference

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_tsemver_from_string (const char *str)
 
semver_tsemver_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_tsemver_bump_major (semver_t *ver)
 
semver_tsemver_bump_minor (semver_t *ver)
 
semver_tsemver_bump_patch (semver_t *ver)
 
semver_tsemver_bump (semver_t *ver, unsigned int index)
 
semver_tsemver_strip_prerelease (semver_t *ver)
 
semver_tsemver_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
 

Detailed Description

Main libsemver source file.

License:
GNU General Public License v. 3.0
Author
Enrico M. Crisostomo
Version
1.0.0