Mercurial > hg > orthanc
diff OrthancFramework/Sources/Toolbox.cpp @ 4938:f630796a59b1 more-tags
ExpandResource now able to return computed tags (like ModalitiesInStudies)
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 14 Mar 2022 16:44:00 +0100 |
parents | 6eff25f70121 |
children | 859f3668c181 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Toolbox.cpp Mon Mar 14 13:13:29 2022 +0100 +++ b/OrthancFramework/Sources/Toolbox.cpp Mon Mar 14 16:44:00 2022 +0100 @@ -56,6 +56,7 @@ #include <boost/algorithm/string/case_conv.hpp> #include <boost/algorithm/string/replace.hpp> +#include <boost/algorithm/string/join.hpp> #include <boost/lexical_cast.hpp> #include <boost/regex.hpp> @@ -1032,6 +1033,21 @@ } + void Toolbox::JoinStrings(std::string& result, + std::set<std::string>& source, + const char* separator) + { + result = boost::algorithm::join(source, separator); + } + + void JoinStrings(std::string& result, + std::vector<std::string>& source, + const char* separator) + { + result = boost::algorithm::join(source, separator); + } + + #if ORTHANC_ENABLE_PUGIXML == 1 class ChunkedBufferWriter : public pugi::xml_writer {