aboutsummaryrefslogtreecommitdiff
path: root/libbutl/standard-version.mxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-08-14 14:09:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-08-14 14:09:32 +0200
commit8561af5a2551ec453c9888125de273f2cc2940c0 (patch)
tree4458e955d33f9aaf7e904c8de717803a33ecc81f /libbutl/standard-version.mxx
parent7c665d965c0ebb259849d5032faa0854c6ae94f2 (diff)
Add support for parsing semantic and semantic-like versions
Diffstat (limited to 'libbutl/standard-version.mxx')
-rw-r--r--libbutl/standard-version.mxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/libbutl/standard-version.mxx b/libbutl/standard-version.mxx
index 5f019c4..7b1f232 100644
--- a/libbutl/standard-version.mxx
+++ b/libbutl/standard-version.mxx
@@ -48,6 +48,25 @@ LIBBUTL_MODEXPORT namespace butl
// [+<epoch>-]<maj>.<min>.<patch>-
// 0[+<revision>]
//
+ // The numeric version format is AAABBBCCCDDDE where:
+ //
+ // AAA - major version number
+ // BBB - minor version number
+ // CCC - patch version number
+ // DDD - alpha / beta (DDD + 500) version number
+ // E - final (0) / snapshot (1)
+ //
+ // When DDDE is not 0, 1 is subtracted from AAABBBCCC. For example:
+ //
+ // Version AAABBBCCCDDDE
+ //
+ // 0.1.0 0000010000000
+ // 0.1.2 0000010010000
+ // 1.2.3 0010020030000
+ // 2.2.0-a.1 0020019990010
+ // 3.0.0-b.2 0029999995020
+ // 2.2.0-a.1.z 0020019990011
+ //
struct LIBBUTL_SYMEXPORT standard_version
{
// Invariants: