aboutsummaryrefslogtreecommitdiff
path: root/libbutl/standard-version.mxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/standard-version.mxx')
-rw-r--r--libbutl/standard-version.mxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/libbutl/standard-version.mxx b/libbutl/standard-version.mxx
index b161063..fa74e01 100644
--- a/libbutl/standard-version.mxx
+++ b/libbutl/standard-version.mxx
@@ -157,12 +157,14 @@ LIBBUTL_MODEXPORT namespace butl
// Create empty version.
//
standard_version () {} // = default; @@ MOD VC
-
- private:
- void
- parse_snapshot (const std::string&, std::size_t&);
};
+ // Try to parse a string as a standard version returning nullopt if invalid.
+ //
+ LIBBUTL_SYMEXPORT optional<standard_version>
+ parse_standard_version (const std::string&,
+ standard_version::flags = standard_version::none);
+
inline bool
operator< (const standard_version& x, const standard_version& y) noexcept
{
@@ -220,6 +222,7 @@ LIBBUTL_MODEXPORT namespace butl
// The build2 "standard version" constraint:
//
// ('==' | '>' | '<' | '>=' | '<=') <version>
+ // ('^' | '~') <version>
// ('(' | '[') <version> <version> (')' | ']')
//
struct LIBBUTL_SYMEXPORT standard_version_constraint