summaryrefslogtreecommitdiff
path: root/xml
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-01-19 19:20:37 +0000
committerlordjaxom <lordjaxom>2005-01-19 19:20:37 +0000
commit7890c2a84d049c9c40844e91ca467e42ac41d621 (patch)
treec619f3b448e351e43996b939891c1de33ad2bd98 /xml
parentfb0980e833c66a5205f64a260af185f75f0e1a16 (diff)
downloadvdr-plugin-text2skin-7890c2a84d049c9c40844e91ca467e42ac41d621.tar.gz
vdr-plugin-text2skin-7890c2a84d049c9c40844e91ca467e42ac41d621.tar.bz2
- implemented token attribute "rest"
Diffstat (limited to 'xml')
-rw-r--r--xml/string.c4
-rw-r--r--xml/string.h7
2 files changed, 7 insertions, 4 deletions
diff --git a/xml/string.c b/xml/string.c
index 3727797..183535e 100644
--- a/xml/string.c
+++ b/xml/string.c
@@ -1,5 +1,5 @@
/*
- * $Id: string.c,v 1.10 2005/01/15 21:00:57 lordjaxom Exp $
+ * $Id: string.c,v 1.11 2005/01/19 19:20:37 lordjaxom Exp $
*/
#include "xml/string.h"
@@ -139,6 +139,8 @@ bool cxString::Parse(const std::string &Text, bool Translate)
txToken &lastToken = mTokens[mTokens.size() - 1];
if (attr == "clean")
lastToken.Attrib = aClean;
+ else if (attr == "rest")
+ lastToken.Attrib = aRest;
else {
char *end;
int n = strtol(attr.c_str(), &end, 10);
diff --git a/xml/string.h b/xml/string.h
index 631b35a..ee47ef8 100644
--- a/xml/string.h
+++ b/xml/string.h
@@ -1,5 +1,5 @@
/*
- * $Id: string.h,v 1.11 2005/01/15 21:00:57 lordjaxom Exp $
+ * $Id: string.h,v 1.12 2005/01/19 19:20:37 lordjaxom Exp $
*/
#ifndef VDR_TEXT2SKIN_XML_STRING_H
@@ -108,9 +108,10 @@ enum exAttrib {
aNone,
aNumber,
aString,
- aClean
+ aClean,
+ aRest
-#define __COUNT_ATTRIB__ (aClean + 1)
+#define __COUNT_ATTRIB__ (aRest + 1)
};
struct txAttrib {