aboutsummaryrefslogtreecommitdiff
path: root/libbutl/manifest-parser.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/manifest-parser.hxx')
-rw-r--r--libbutl/manifest-parser.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbutl/manifest-parser.hxx b/libbutl/manifest-parser.hxx
index fd0cc4e..f84badd 100644
--- a/libbutl/manifest-parser.hxx
+++ b/libbutl/manifest-parser.hxx
@@ -8,6 +8,7 @@
#include <string>
#include <iosfwd>
#include <cstdint> // uint64_t
+#include <utility> // pair
#include <stdexcept> // runtime_error
#include <libbutl/export.hxx>
@@ -71,6 +72,13 @@ namespace butl
manifest_name_value
next ();
+ // Split the manifest value, optionally followed by ';' character and a
+ // comment into the value/comment pair. Note that ';' characters in the
+ // value must be escaped by the backslash.
+ //
+ static std::pair<std::string, std::string>
+ split_comment (const std::string&);
+
private:
void
parse_name (manifest_name_value&);