mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-15 22:02:51 -06:00
Core: XMLParser TagElseSkip, LoopTag
git-svn-id: svn://ultimatepp.org/upp/trunk@6733 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7817e6fa2a
commit
97eb4cf62e
3 changed files with 42 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue