From 878afc6d47ee4efa34a7ae1ab58025f6d65d9964 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Apr 2012 02:26:50 -0500 Subject: Added 'lowered' helper function --- src/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index 2feb73b7..8f11f75a 100644 --- a/src/utils.h +++ b/src/utils.h @@ -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; } -- cgit v1.2.3