summaryrefslogtreecommitdiff
path: root/helpers.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-09-29 12:03:45 +0200
committerlouis <louis.braun@gmx.de>2013-09-29 12:03:45 +0200
commitacce422dcfe6bb57818f062b3a6e2db99b4cb2d3 (patch)
tree33d129161784818b95890a656c7a802f1118bfed /helpers.c
parent9a0778bbdf309018a635229bd0523b3435388978 (diff)
downloadskin-nopacity-acce422dcfe6bb57818f062b3a6e2db99b4cb2d3.tar.gz
skin-nopacity-acce422dcfe6bb57818f062b3a6e2db99b4cb2d3.tar.bz2
Added Cache for images and fonts
Diffstat (limited to 'helpers.c')
-rw-r--r--helpers.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/helpers.c b/helpers.c
index 8de3bf2..3f9b3f6 100644
--- a/helpers.c
+++ b/helpers.c
@@ -1,5 +1,6 @@
#include <string>
#include <sstream>
+#include <vector>
static cOsd *CreateOsd(int Left, int Top, int Width, int Height) {
cOsd *osd = cOsdProvider::NewOsd(Left, Top);
@@ -110,6 +111,15 @@ static std::string CutText(std::string text, int width, const cFont *font) {
return cuttedText;
}
+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;
+}
+
class splitstring : public std::string {
std::vector<std::string> flds;
public: