summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-12-21 11:25:03 +0100
committerlouis <louis.braun@gmx.de>2013-12-21 11:25:03 +0100
commit4c61104675de5f1fac7e7fa95fb5743e18defc02 (patch)
tree7a3ee90e3b28246e8d4595954d4559445fb7ebe7 /tools.c
parent8aa2c81d3165a0517115337362f1203ea4bdd899 (diff)
downloadvdr-plugin-tvguide-4c61104675de5f1fac7e7fa95fb5743e18defc02.tar.gz
vdr-plugin-tvguide-4c61104675de5f1fac7e7fa95fb5743e18defc02.tar.bz2
Version 1.2.0pre
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools.c b/tools.c
index 5c0242a..92fb4a8 100644
--- a/tools.c
+++ b/tools.c
@@ -38,6 +38,19 @@ std::string CutText(std::string text, int width, const cFont *font) {
}
return cuttedText;
}
+
+/****************************************************************************************
+* StrToLowerCase
+****************************************************************************************/
+std::string StrToLowerCase(std::string str) {
+ std::string lowerCase = str;
+ const int length = lowerCase.length();
+ for(int i=0; i < length; ++i) {
+ lowerCase[i] = std::tolower(lowerCase[i]);
+ }
+ return lowerCase;
+}
+
/****************************************************************************************
* SPLTSTRING
****************************************************************************************/