37 auto it = std::find_if(
begin(),
end(),
38 [&optName](
const auto &opt) {
return opt.name==optName; });
41 it->value +=
" " + optValue;
45 emplace_back(optName,optValue);
52 for (
const auto &att : *
this)
54 if (!att.value.isEmpty())
58 if (att.name==
"alt" && pAltValue)
62 *pAltValue = att.value;
69 else if (att.name==
"open")
74 result+=
" "+att.name+
"=\"true\"";
76 else if (att.name==
"nowrap")
78 result+=
" "+att.name+
"=\"nowrap\"";
Class representing a list of HTML attributes.
QCString toString(QCString *pAltValue=nullptr) const
void mergeAttribute(const QCString &optName, const QCString &optValue)
This is an alternative implementation of QCString.
DirIterator begin(DirIterator it) noexcept
DirIterator end(const DirIterator &) noexcept
HtmlAttrib(const QCString &n, const QCString &v)
QCString convertToXML(const QCString &s, bool keepEntities)
A bunch of utility functions.