summaryrefslogtreecommitdiff
path: root/lib/common.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2018-03-11 14:00:09 +0100
committerhorchi <vdr@jwendel.de>2018-03-11 14:00:09 +0100
commitcc0ddd47a78d451b445cfa7667757400c619cd5b (patch)
tree2cfadc6b53b10ceba0606a59176035af9e7b13a4 /lib/common.c
parent69218e79181c863a92e51d0d0b8f8a31b31c66c2 (diff)
downloadvdr-epg-daemon-cc0ddd47a78d451b445cfa7667757400c619cd5b.tar.gz
vdr-epg-daemon-cc0ddd47a78d451b445cfa7667757400c619cd5b.tar.bz2
2018-03-11: version 1.1.138 (horchi)\n change: Fixed image problem with epgdata\n due to interface change by epgdata (patch by seahawk1986)\n\n1.1.138
Diffstat (limited to 'lib/common.c')
-rw-r--r--lib/common.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/common.c b/lib/common.c
index 69cc618..597f0d5 100644
--- a/lib/common.c
+++ b/lib/common.c
@@ -261,6 +261,21 @@ const char* toCase(Case cs, char* str)
return str;
}
+
+char* replaceChars(char* string, const char* chars, const char to)
+{
+ char* p = string;
+
+ while (*p)
+ {
+ if (strchr(chars, *p))
+ *p = to;
+ p++;
+ }
+
+ return string;
+}
+
void removeChars(std::string& str, const char* ignore)
{
const char* s = str.c_str();