diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-22 16:53:35 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-22 16:53:35 (GMT) |
commit | a8698c4d671cf3c957f2d67a4e8cedde49dae8a3 (patch) | |
tree | c01c1023b6c6b350f67b5294aee41ea62c2bf362 /Swiften/Base/String.cpp | |
parent | abbfb6f8c410104c883c54e6f483c8c37f954d56 (diff) | |
download | swift-contrib-a8698c4d671cf3c957f2d67a4e8cedde49dae8a3.zip swift-contrib-a8698c4d671cf3c957f2d67a4e8cedde49dae8a3.tar.bz2 |
Use lowercase app name for application dir on Un*x systems.
Diffstat (limited to 'Swiften/Base/String.cpp')
-rw-r--r-- | Swiften/Base/String.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Base/String.cpp b/Swiften/Base/String.cpp index 88692b7..52d1f2c 100644 --- a/Swiften/Base/String.cpp +++ b/Swiften/Base/String.cpp @@ -89,5 +89,10 @@ void String::replaceAll(char c, const String& s) { } } +String String::getLowerCase() const { + std::string lower(data_); + std::transform(lower.begin(), lower.end(), lower.begin(), ::tolower); + return String(lower); +} } |