diff options
Diffstat (limited to 'bpkg/manifest-utility.hxx')
-rw-r--r-- | bpkg/manifest-utility.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bpkg/manifest-utility.hxx b/bpkg/manifest-utility.hxx index a0966d4..5cc1c24 100644 --- a/bpkg/manifest-utility.hxx +++ b/bpkg/manifest-utility.hxx @@ -31,9 +31,21 @@ namespace bpkg string parse_package_name (const char*); + inline string + parse_package_name (const string& s) + { + return parse_package_name (s.c_str ()); + } + version parse_package_version (const char*); + inline version + parse_package_version (const string& s) + { + return parse_package_version (s.c_str ()); + } + // If the passed location is a relative local path, then assume this is a // relative path to the repository directory and complete it based on the // current working directory. Diagnose invalid locations and throw failed. |