diff options
| author | louis <louis.braun@gmx.de> | 2015-04-18 16:39:30 +0200 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-04-18 16:39:30 +0200 |
| commit | abbdea4b76c9edcdcefe99e9868cb67fd4a30778 (patch) | |
| tree | ce319a9ec34f3c9a2a443846dd8fd88a7a2d8ac7 /libtemplate/parameter.h | |
| parent | 5bbd592636d47cef3d40e302f16a9bd654a58fe8 (diff) | |
| download | vdr-plugin-skindesigner-abbdea4b76c9edcdcefe99e9868cb67fd4a30778.tar.gz vdr-plugin-skindesigner-abbdea4b76c9edcdcefe99e9868cb67fd4a30778.tar.bz2 | |
added strequal, strnotequal, strcontains, strnotcontains functions to compare strings in conditions
Diffstat (limited to 'libtemplate/parameter.h')
| -rw-r--r-- | libtemplate/parameter.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libtemplate/parameter.h b/libtemplate/parameter.h index bd20758..0a4ca23 100644 --- a/libtemplate/parameter.h +++ b/libtemplate/parameter.h @@ -110,6 +110,10 @@ enum eCondType { ctBool, ctStringSet, ctStringEmpty, + ctStringEquals, + ctStringNotEquals, + ctStringContains, + ctStringNotContains, ctNone }; @@ -118,6 +122,7 @@ struct sCondition { bool isNegated; eCondType type; int compareValue; + string strCompareValue; }; class cConditionalParameter { @@ -129,6 +134,7 @@ private: vector<sCondition> conditions; void TokenizeValue(string sep); void InsertCondition(string cond); + string StripWhitespaces(string value); int EvaluateParameter(string token, map < string, int > *intTokens, map < string, string > *stringTokens); public: cConditionalParameter(cGlobals *globals, string value); |
