From 6254448640530240dc9199bed60cd5568cbaf601 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 1 Aug 2017 16:42:22 +0300 Subject: Add manifest_parser::split_comment() and manifest_serializer::merge_comment() --- libbutl/manifest-serializer.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libbutl/manifest-serializer.hxx') diff --git a/libbutl/manifest-serializer.hxx b/libbutl/manifest-serializer.hxx index 89c162c..d95ddf1 100644 --- a/libbutl/manifest-serializer.hxx +++ b/libbutl/manifest-serializer.hxx @@ -51,6 +51,13 @@ namespace butl void comment (const std::string&); + // Merge the manifest value and a comment into the single string, having + // the '; ' form. Escape ';' characters in the value with + // the backslash. + // + static std::string + merge_comment (const std::string& value, const std::string& comment); + private: void check_name (const std::string&); -- cgit v1.1