Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
4937:3f9b9865c8cc | 4938:f630796a59b1 |
---|---|
54 #endif | 54 #endif |
55 | 55 |
56 | 56 |
57 #include <boost/algorithm/string/case_conv.hpp> | 57 #include <boost/algorithm/string/case_conv.hpp> |
58 #include <boost/algorithm/string/replace.hpp> | 58 #include <boost/algorithm/string/replace.hpp> |
59 #include <boost/algorithm/string/join.hpp> | |
59 #include <boost/lexical_cast.hpp> | 60 #include <boost/lexical_cast.hpp> |
60 #include <boost/regex.hpp> | 61 #include <boost/regex.hpp> |
61 | 62 |
62 #if BOOST_VERSION >= 106600 | 63 #if BOOST_VERSION >= 106600 |
63 # include <boost/uuid/detail/sha1.hpp> | 64 # include <boost/uuid/detail/sha1.hpp> |
1027 currentItem.push_back(value[i]); | 1028 currentItem.push_back(value[i]); |
1028 } | 1029 } |
1029 } | 1030 } |
1030 | 1031 |
1031 result.push_back(currentItem); | 1032 result.push_back(currentItem); |
1033 } | |
1034 | |
1035 | |
1036 void Toolbox::JoinStrings(std::string& result, | |
1037 std::set<std::string>& source, | |
1038 const char* separator) | |
1039 { | |
1040 result = boost::algorithm::join(source, separator); | |
1041 } | |
1042 | |
1043 void JoinStrings(std::string& result, | |
1044 std::vector<std::string>& source, | |
1045 const char* separator) | |
1046 { | |
1047 result = boost::algorithm::join(source, separator); | |
1032 } | 1048 } |
1033 | 1049 |
1034 | 1050 |
1035 #if ORTHANC_ENABLE_PUGIXML == 1 | 1051 #if ORTHANC_ENABLE_PUGIXML == 1 |
1036 class ChunkedBufferWriter : public pugi::xml_writer | 1052 class ChunkedBufferWriter : public pugi::xml_writer |