24#include <unordered_map>
25#include <unordered_set>
56 for (
size_t i=0;i<res.
length();i++)
if (!
isId(res[i])) res[i]=
'_';
63 if (!sourceTooltips)
return;
73 if (currentExtension.
empty())
88 p->tooltipInfo.emplace(
id.str(),d);
94 std::unordered_map<int, std::unordered_set<std::string> >::iterator it;
107 for (
const auto &[name,d] :
p->tooltipInfo)
109 bool written =
false;
114 written = it->second.find(name)!=it->second.end();
117 it->second.insert(name);
125 docInfo.
name = d->qualifiedName();
126 docInfo.
ref = d->getReference();
127 docInfo.
url = d->getOutputFileBase();
128 docInfo.
anchor = d->anchor();
130 if (d->getBodyDef() && d->getStartBodyLine()!=-1)
132 defInfo.
file = d->getBodyDef()->name();
133 defInfo.
line = d->getStartBodyLine();
134 defInfo.
url = d->getSourceFileBase();
135 defInfo.
anchor = d->getSourceAnchor();
150 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)
bool isId(int c)
Returns true if c is a valid character for an identifier.
MemberDef * toMemberDef(Definition *d)
DString stripExtensionGeneral(const DString &fName, const DString &ext)
DString getFileNameExtension(const DString &fn)
A bunch of utility functions.