diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2011-06-06 19:49:53 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2011-06-06 19:49:53 (GMT) |
commit | 0bb78ec1f61b95b550b65361081c01a104728341 (patch) | |
tree | b158d4e26359c261b119f485d1d4c69a6034663c /src/htmlattrib.h | |
parent | 3c0d4d412c7b6c2afa9e76fcfd5ef5ea8586ad68 (diff) | |
download | Doxygen-0bb78ec1f61b95b550b65361081c01a104728341.zip Doxygen-0bb78ec1f61b95b550b65361081c01a104728341.tar.gz Doxygen-0bb78ec1f61b95b550b65361081c01a104728341.tar.bz2 |
Release-1.7.4-20110606
Diffstat (limited to 'src/htmlattrib.h')
-rw-r--r-- | src/htmlattrib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/htmlattrib.h b/src/htmlattrib.h index 531f29a..b25489c 100644 --- a/src/htmlattrib.h +++ b/src/htmlattrib.h @@ -35,6 +35,18 @@ class HtmlAttribList : public QList<HtmlAttrib> { operator=(l); } HtmlAttribList &operator=(const HtmlAttribList &l) { clear(); QList<HtmlAttrib>::operator=(l); return *this; } + QCString find(const QCString name) const + { + HtmlAttribList *that = (HtmlAttribList *)this; + QCString result; + HtmlAttrib *attr=that->first(); + while (attr) + { + if (attr->name==name) return attr->value; + attr=that->next(); + } + return result; + } QCString toString() const { HtmlAttribList *that = (HtmlAttribList *)this; |