summaryrefslogtreecommitdiff
path: root/src/utils/tolower.cpp
blob: 3e518bdc59803d5859d498d2bcc76c5cd114a7a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <utils/tolower.hpp>

namespace utils
{
  std::string tolower(const std::string& original)
  {
    std::string res;
    res.reserve(original.size());
    for (const char c: original)
      res += static_cast<char>(std::tolower(c));
    return res;
  }
}