commit | 5b8a8f38d65ace63cb2f18d96dccf9e5264f1856 | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Wed May 20 00:57:22 2020 +0200 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Tue May 26 23:47:20 2020 +0200 |
tree | 336343240877b0aee04b690ae2e23066e00df5f7 | |
parent | ce69bc53966d8ab34c17f2bc6f923ed23f6822f6 [diff] [blame] |
Add support for leaflist Change-Id: Idcb529f85240a32e84d82934c81fcf0c3451f94e
diff --git a/src/utils.cpp b/src/utils.cpp index 3543787..941fa4e 100644 --- a/src/utils.cpp +++ b/src/utils.cpp
@@ -228,3 +228,10 @@ { return boost::apply_visitor(getSchemaPathVisitor(), path); } + +std::string stripLeafListValueFromPath(const std::string& path) +{ + auto res = path; + res.erase(res.find_last_of('[')); + return res; +}