Added 'lowered' helper function

This commit is contained in:
John Wiegley 2012-04-04 02:26:50 -05:00
parent fcabd64a89
commit 878afc6d47

View file

@ -290,6 +290,12 @@ inline string to_string(std::size_t num) {
return buf.str();
}
inline string lowered(const string& str) {
string tmp(str);
to_lower(tmp);
return tmp;
}
inline string operator+(const char * left, const string& right) {
return string(left) + right;
}