18#include <unordered_map>
19#include <unordered_set>
52 for (
size_t i=0;i<res.
length();i++)
if (!
isId(res[i])) res[i]=
'_';
59 if (!sourceTooltips)
return;
69 if (currentExtension.
empty())
84 p->tooltipInfo.emplace(
id.str(),d);
90 std::unordered_map<int, std::unordered_set<std::string> >::iterator it;
103 for (
const auto &[name,d] :
p->tooltipInfo)
105 bool written =
false;
110 written = it->second.find(name)!=it->second.end();
113 it->second.insert(name);
121 docInfo.
name = d->qualifiedName();
122 docInfo.
ref = d->getReference();
123 docInfo.
url = d->getOutputFileBase();
124 docInfo.
anchor = d->anchor();
126 if (d->getBodyDef() && d->getStartBodyLine()!=-1)
128 defInfo.
file = d->getBodyDef()->name();
129 defInfo.
line = d->getStartBodyLine();
130 defInfo.
url = d->getSourceFileBase();
131 defInfo.
anchor = d->getSourceAnchor();
146 d->briefDescriptionAsTooltip(),
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
static constexpr size_t npos
value used to indicate 'not found' or 'to the end of the string', matching std::string::npos
size_t length() const
Returns the length of the string, not counting the 0-terminator.
The common base class of all entity definitions found in the sources.
virtual bool isAnonymous() const =0
virtual DString anchor() const =0
virtual DString getOutputFileBase() const =0
static DString htmlFileExtension
A model of a class/file/namespace member symbol.
virtual DString declaration() const =0
Class representing a list of different code generators.
void writeTooltip(const DString &id, const DocLinkInfo &docInfo, const DString &decl, const DString &desc, const SourceLinkInfo &defInfo, const SourceLinkInfo &declInfo)
#define Config_getBool(name)
MemberDef * toMemberDef(Definition *d)
DString stripExtensionGeneral(const DString &fName, const DString &ext)
DString getFileNameExtension(const DString &fn)
A bunch of utility functions.