diff options
-rw-r--r-- | xml/string.c | 4 | ||||
-rw-r--r-- | xml/string.h | 7 |
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 { |