comparison Core/Toolbox.cpp @ 690:2e67366aab83

case-insensitive matching of Application Entity Titles
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Feb 2014 15:54:46 +0100
parents 2d0a347e8cfc
children 01d8611c4a60
comparison
equal deleted inserted replaced
689:2d0a347e8cfc 690:2e67366aab83
217 { 217 {
218 std::transform(s.begin(), s.end(), s.begin(), tolower); 218 std::transform(s.begin(), s.end(), s.begin(), tolower);
219 } 219 }
220 220
221 221
222 void Toolbox::ToUpperCase(std::string& result,
223 const std::string& source)
224 {
225 result = source;
226 ToUpperCase(result);
227 }
228
229 void Toolbox::ToLowerCase(std::string& result,
230 const std::string& source)
231 {
232 result = source;
233 ToLowerCase(result);
234 }
235
222 236
223 void Toolbox::ReadFile(std::string& content, 237 void Toolbox::ReadFile(std::string& content,
224 const std::string& path) 238 const std::string& path)
225 { 239 {
226 boost::filesystem::ifstream f; 240 boost::filesystem::ifstream f;