summaryrefslogtreecommitdiff
path: root/helpers.c
diff options
context:
space:
mode:
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: