diff options
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); +} } |