diff options
author | horchi <vdr@jwendel.de> | 2018-03-11 14:00:31 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2018-03-11 14:00:31 +0100 |
commit | 92e05e8cbf57fa45a87027484929c033c4002d14 (patch) | |
tree | b5fa3a9ce5d20a23733461a147da3fbc1a279be4 /lib/common.c | |
parent | a29fa81a3dbf641a40b93f69b90151f70dc0290c (diff) | |
download | vdr-plugin-epg2vdr-92e05e8cbf57fa45a87027484929c033c4002d14.tar.gz vdr-plugin-epg2vdr-92e05e8cbf57fa45a87027484929c033c4002d14.tar.bz2 |
2018-03-11 version 1.1.94 (horchi)\n - change: Porting to dbapi 7 changes of epgd\n\n1.1.94
Diffstat (limited to 'lib/common.c')
-rw-r--r-- | lib/common.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/common.c b/lib/common.c index cf68ffa..a452b23 100644 --- a/lib/common.c +++ b/lib/common.c @@ -261,6 +261,20 @@ 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(); @@ -1920,6 +1934,8 @@ int urlUnescape(char* dst, const char* src, int normalize) return (dst - org_dst) - 1; } +#ifdef VDR_PLUGIN + //*************************************************************************** //*************************************************************************** // Timer Thread @@ -1967,3 +1983,5 @@ void cTimerThread::Action() // if (selfdetroy) // delete this; // :o :o ;) } + +#endif // VDR_PLUGIN |