~j-rivero/+junk/doxygen

« back to all changes in this revision

Viewing changes to src/htmlattrib.h

  • Committer: Package Import Robot
  • Author(s): Helmut Grohne
  • Date: 2014-05-16 20:58:26 UTC
  • mfrom: (1.1.33)
  • Revision ID: package-import@ubuntu.com-20140516205826-bmlvn4pltxejeyzk
Tags: 1.8.7-1
* doxygen 1.8.7 release.
  + Standard build regenerates *_js.h now. Update README.jquery.
  + Add doxygen.NEWS for GENERATE_HTML default change.
  + Refresh patches. dot-config.diff completely rewritten against
    config.xml.
* Uglify javascript during build. Therefore B-D: yui-compressor.
* Also remove winbuild to avoid accidentally using it.
* Add half a stage1 build-profile to drop libqt4-dev. Not annotating the
  dependency because #744246. Thanks to Daniel Schepler and Wookey.
  (Addresses: #738263)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 * 
4
4
 *
5
 
 * Copyright (C) 1997-2013 by Dimitri van Heesch.
 
5
 * Copyright (C) 1997-2014 by Dimitri van Heesch.
6
6
 *
7
7
 * Permission to use, copy, modify, and distribute this software and its
8
8
 * documentation under the terms of the GNU General Public License is hereby 
40
40
    { clear(); QList<HtmlAttrib>::operator=(l); return *this; }
41
41
    QCString find(const QCString name) const
42
42
    {
43
 
      HtmlAttribList *that = (HtmlAttribList *)this;
 
43
      QListIterator<HtmlAttrib> it(*this);
44
44
      QCString result;
45
 
      HtmlAttrib *attr=that->first();
46
 
      while (attr)
 
45
      HtmlAttrib *attr;
 
46
      for (;(attr=it.current());++it)
47
47
      {
48
48
        if (attr->name==name) return attr->value;
49
 
        attr=that->next();
50
49
      }
51
50
      return result;
52
51
    }
53
52
    QCString toString() const
54
53
    {
55
 
      HtmlAttribList *that = (HtmlAttribList *)this;
 
54
      QListIterator<HtmlAttrib> it(*this);
56
55
      QCString result;
57
 
      HtmlAttrib *attr=that->first();
58
 
      while (attr)
 
56
      HtmlAttrib *attr;
 
57
      for (;(attr=it.current());++it)
59
58
      {
60
59
        result+=" "+attr->name+"=\""+attr->value+"\"";
61
 
        attr=that->next();
62
60
      }
63
61
      return result;
64
62
    }
65
63
  private:
66
 
    QCollection::Item newItem( QCollection::Item d ) 
67
 
    { return (QCollection::Item)new HtmlAttrib(*(HtmlAttrib *)d); }
68
 
    void deleteItem(QCollection::Item d) 
69
 
    { delete (HtmlAttrib *)d; }
 
64
    HtmlAttrib *newValue( HtmlAttrib *v ) const
 
65
    { return new HtmlAttrib(*v); }
 
66
    void deleteValue(HtmlAttrib *v) const
 
67
    { delete v;  }
70
68
};
71
69
 
72
70
/*! @brief Html attribute list iterator */