You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
428 B
C++

#include "utils.hpp"
#include <algorithm>
#include <cctype>
#include <iterator>
namespace Exiv2 {
std::string upper(const std::string& str) {
std::string result;
std::transform(str.begin(), str.end(), std::back_inserter(result), ::toupper);
return result;
}
std::string lower(const std::string& a) {
std::string b = a;
std::transform(a.begin(), a.end(), b.begin(), ::tolower);
return b;
}
} // namespace Exiv2