Mercurial > hg > orthanc-stone
comparison Framework/Orthanc/Core/Toolbox.h @ 12:9220cf4a63d5
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 14:14:34 +0100 |
parents | 2dbe613f6c93 |
children | 0b9034112fde |
comparison
equal
deleted
inserted
replaced
11:4b7e0244881f | 12:9220cf4a63d5 |
---|---|
161 Encoding sourceEncoding); | 161 Encoding sourceEncoding); |
162 | 162 |
163 std::string ConvertFromUtf8(const std::string& source, | 163 std::string ConvertFromUtf8(const std::string& source, |
164 Encoding targetEncoding); | 164 Encoding targetEncoding); |
165 | 165 |
166 bool IsAsciiString(const void* data, | |
167 size_t size); | |
168 | |
166 std::string ConvertToAscii(const std::string& source); | 169 std::string ConvertToAscii(const std::string& source); |
167 | 170 |
168 std::string StripSpaces(const std::string& source); | 171 std::string StripSpaces(const std::string& source); |
169 | 172 |
170 #if BOOST_HAS_DATE_TIME == 1 | 173 #if BOOST_HAS_DATE_TIME == 1 |
193 | 196 |
194 #if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1 | 197 #if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1 |
195 bool IsExistingFile(const std::string& path); | 198 bool IsExistingFile(const std::string& path); |
196 #endif | 199 #endif |
197 | 200 |
198 #if ORTHANC_PUGIXML_ENABLED == 1 | 201 #if ORTHANC_ENABLE_PUGIXML == 1 |
199 void JsonToXml(std::string& target, | 202 void JsonToXml(std::string& target, |
200 const Json::Value& source, | 203 const Json::Value& source, |
201 const std::string& rootElement = "root", | 204 const std::string& rootElement = "root", |
202 const std::string& arrayElement = "item"); | 205 const std::string& arrayElement = "item"); |
203 #endif | 206 #endif |