comparison Resources/Orthanc/Core/Toolbox.h @ 116:a18bfe1fdd62

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Jan 2018 10:49:34 +0100
parents a3e8ac8b7256
children 0a1443204818
comparison
equal deleted inserted replaced
115:a51dee6a1515 116:a18bfe1fdd62
1 /** 1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
4 * Department, University Hospital of Liege, Belgium 4 * Department, University Hospital of Liege, Belgium
5 * Copyright (C) 2017 Osimis, Belgium 5 * Copyright (C) 2017-2018 Osimis S.A., Belgium
6 * 6 *
7 * This program is free software: you can redistribute it and/or 7 * This program is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as 8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation, either version 3 of the 9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version. 10 * License, or (at your option) any later version.
150 #endif 150 #endif
151 151
152 bool IsAsciiString(const void* data, 152 bool IsAsciiString(const void* data,
153 size_t size); 153 size_t size);
154 154
155 bool IsAsciiString(const std::string& s);
156
155 std::string ConvertToAscii(const std::string& source); 157 std::string ConvertToAscii(const std::string& source);
156 158
157 std::string StripSpaces(const std::string& source); 159 std::string StripSpaces(const std::string& source);
158 160
159 // In-place percent-decoding for URL 161 // In-place percent-decoding for URL