22 lines
448 B
C++
22 lines
448 B
C++
#include "utils.hpp"
|
|
|
|
#include <algorithm>
|
|
#include <cctype>
|
|
#include <iterator>
|
|
|
|
namespace Exiv2::Internal {
|
|
|
|
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::Internal
|