Core: XMLParser TagElseSkip, LoopTag

git-svn-id: svn://ultimatepp.org/upp/trunk@6733 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-01-08 10:26:37 +00:00
parent 7817e6fa2a
commit 97eb4cf62e
3 changed files with 42 additions and 0 deletions

View file

@ -556,6 +556,24 @@ void XmlParser::PassTagE(const char *tag)
SkipEnd();
}
bool XmlParser::TagElseSkip(const char *tag)
{
if(Tag(tag))
return true;
Skip();
return false;
}
bool XmlParser::LoopTag(const char *tag)
{
while(!End()) {
if(Tag(tag))
return true;
Skip();
}
return false;
}
VectorMap<String, String> XmlParser::PickAttrs() pick_
{
if(!IsNull(attr1))