From 1374560d558f4cab72f66b3d851e2a052f59998d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 1 Mar 2018 18:33:16 +0300 Subject: Update pkg-build --- bpkg/manifest-utility.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bpkg/manifest-utility.hxx') 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. -- cgit v1.1