diff options
author | John Wiegley <johnw@newartisans.com> | 2012-04-04 02:26:50 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-04-04 02:26:50 -0500 |
commit | 878afc6d47ee4efa34a7ae1ab58025f6d65d9964 (patch) | |
tree | ae4416a84daafc019d295b4b5864040ca69e7883 /src/utils.h | |
parent | fcabd64a8981004179fa94c0f58ade7e993399b4 (diff) | |
download | fork-ledger-878afc6d47ee4efa34a7ae1ab58025f6d65d9964.tar.gz fork-ledger-878afc6d47ee4efa34a7ae1ab58025f6d65d9964.tar.bz2 fork-ledger-878afc6d47ee4efa34a7ae1ab58025f6d65d9964.zip |
Added 'lowered' helper function
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |