//-*- mode: c++; indent-tabs-mode: t; coding: utf-8; show-trailing-whitespace: t -*- // file strcom.cpp #include "strcom.hpp" namespace strcom { std::string toLower (const std::string &s) { std::string sTemp = s; // std::for_each (sTemp.begin (), sTemp.end (), [](char &c) { c = std::tolower (c); }); return sTemp; } std::string toUpper (const std::string &s) { std::string sTemp = s; // std::for_each (sTemp.begin (), sTemp.end (), [](char &c) { c = std::toupper (c); }); return sTemp; } } // end of file strcom.cpp