Mercurial > hg > orthanc
comparison Core/Toolbox.h @ 1397:704de8c30ff5
modularization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 01 Jun 2015 11:50:58 +0200 |
parents | f497a72d9f71 |
children | fe384a9d3b51 |
comparison
equal
deleted
inserted
replaced
1396:ac4efabeb80c | 1397:704de8c30ff5 |
---|---|
120 | 120 |
121 std::string ConvertToAscii(const std::string& source); | 121 std::string ConvertToAscii(const std::string& source); |
122 | 122 |
123 std::string StripSpaces(const std::string& source); | 123 std::string StripSpaces(const std::string& source); |
124 | 124 |
125 #if BOOST_HAS_DATE_TIME == 1 | |
125 std::string GetNowIsoString(); | 126 std::string GetNowIsoString(); |
127 #endif | |
126 | 128 |
127 // In-place percent-decoding for URL | 129 // In-place percent-decoding for URL |
128 void UrlDecode(std::string& s); | 130 void UrlDecode(std::string& s); |
129 | 131 |
130 Endianness DetectEndianness(); | 132 Endianness DetectEndianness(); |
131 | 133 |
134 #if BOOST_HAS_REGEX == 1 | |
132 std::string WildcardToRegularExpression(const std::string& s); | 135 std::string WildcardToRegularExpression(const std::string& s); |
136 #endif | |
133 | 137 |
134 void TokenizeString(std::vector<std::string>& result, | 138 void TokenizeString(std::vector<std::string>& result, |
135 const std::string& source, | 139 const std::string& source, |
136 char separator); | 140 char separator); |
137 | 141 |
142 #if BOOST_HAS_REGEX == 1 | |
138 void DecodeDataUriScheme(std::string& mime, | 143 void DecodeDataUriScheme(std::string& mime, |
139 std::string& content, | 144 std::string& content, |
140 const std::string& source); | 145 const std::string& source); |
146 #endif | |
141 | 147 |
142 void CreateDirectory(const std::string& path); | 148 void MakeDirectory(const std::string& path); |
143 | 149 |
144 bool IsExistingFile(const std::string& path); | 150 bool IsExistingFile(const std::string& path); |
145 | 151 |
146 #if ORTHANC_PUGIXML_ENABLED == 1 | 152 #if ORTHANC_PUGIXML_ENABLED == 1 |
147 void JsonToXml(std::string& target, | 153 void JsonToXml(std::string& target, |