diff options
author | Christian Wieninger <cwieninger@gmx.de> | 2011-06-12 10:41:37 +0200 |
---|---|---|
committer | Christian Wieninger <cwieninger@gmx.de> | 2011-06-12 10:41:37 +0200 |
commit | 7caf8219ca7295a0f25bb1789f9658c4b3c324ff (patch) | |
tree | 2d4c4d0f37702aeb5882e88ad3535980e0f3dd7b /epgsearchtools.h | |
parent | a31c53e6d76e60de171394371f07b188b759fa74 (diff) | |
download | vdr-plugin-epgsearch-7caf8219ca7295a0f25bb1789f9658c4b3c324ff.tar.gz vdr-plugin-epgsearch-7caf8219ca7295a0f25bb1789f9658c4b3c324ff.tar.bz2 |
avoid repeats by 'compare epxression'
Diffstat (limited to 'epgsearchtools.h')
-rw-r--r-- | epgsearchtools.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epgsearchtools.h b/epgsearchtools.h index 0f44ad8..6973995 100644 --- a/epgsearchtools.h +++ b/epgsearchtools.h @@ -141,6 +141,7 @@ string UpdateAuxValue(string aux, string section, string value); string UpdateAuxValue(string aux, string section, long num); void ToLower(char* szText); char *strreplacei(char *s, const char *s1, const char *s2); +std::string strreplace(std::string& result, const std::string& replaceWhat, const std::string& replaceWithWhat); // replace s1 with s2 in s ignoring the case of s1 inline char *strreplacei(char *s, const char *s1, const char s2) @@ -170,7 +171,7 @@ char* GetRawDescription(const char* descr); void PrepareTimerFile(const cEvent* event, cTimer* timer); int CompareEventTime(const void *p1, const void *p2); int CompareEventChannel(const void *p1, const void *p2); -bool EventsMatch(const cEvent* event1, const cEvent* event2, bool compareTitle, int compareSubtitle, bool compareSummary, unsigned long catvaluesAvoidRepeat, int matchLimit=90); +bool EventsMatch(const cEvent* event1, const cEvent* event2, bool compareTitle, int compareSubtitle, bool compareSummary, const char* compareExpression, unsigned long catvaluesAvoidRepeat, int matchLimit=90); int ChannelNrFromEvent(const cEvent* pEvent); void DelTimer(int index); char* FixSeparators(char* buffer, char sep); |