mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 11:37:00 -07:00
- Change error code from `NONE` TO `IGNORE` - Added format function to utils - Implement version functions
20 lines
No EOL
365 B
C++
20 lines
No EOL
365 B
C++
#pragma once
|
|
|
|
#include "error.hpp"
|
|
#include "result.hpp"
|
|
|
|
#include <string>
|
|
|
|
|
|
namespace gdpm::version{
|
|
struct context{
|
|
int major = 0;
|
|
int minor = 0;
|
|
int patch = 0;
|
|
string commit = "";
|
|
};
|
|
|
|
std::string to_string(const context& context);
|
|
result_t<context> to_version(const std::string& version);
|
|
bool is_valid_version_string(const std::string& version);
|
|
} |