mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-26 14:23:08 -06:00
Core: Added XML:IsAttr
git-svn-id: svn://ultimatepp.org/upp/trunk@3729 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f66edf50d3
commit
9cd52f49bc
1 changed files with 1 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ public:
|
|||
|
||||
int GetAttrCount() const { return attr.GetCount() + !IsNull(attr1); }
|
||||
String GetAttr(int i) const { return i ? attr.GetKey(i - 1) : attr1; }
|
||||
bool IsAttr(const char *id) const { return attr1 == id || attr.Find(id) >= 0; }
|
||||
String operator[](int i) const { return i ? attr[i - 1] : attrval1; }
|
||||
String operator[](const char *id) const { return attr1 == id ? attrval1 : attr.Get(id, Null); }
|
||||
int Int(const char *id, int def = Null) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue