20#ifndef SEARCHINDEX_JS_H
21#define SEARCHINDEX_JS_H
33#define NUM_SEARCH_INDICES 22
44 using LinkInfo = std::variant<std::monostate,const Definition *,const SectionInfo *>;
64 void add(
const SearchTerm &
term);
The common base class of all entity definitions found in the sources.
This is an alternative implementation of QCString.
class that provide information about a section.
void createJavaScriptSearchIndex()
std::vector< SearchTerm > SearchIndexList
List of search terms.
std::map< std::string, SearchIndexList > SearchIndexMap
Map of search terms for a given starting letter.
QCString searchName(const Definition *d)
const std::array< SearchIndexInfo, NUM_SEARCH_INDICES > & getSearchIndices()
void writeJavaScriptSearchIndex()
Table entry to allow filtering the search results per category.
void add(const SearchTerm &term)
std::function< QCString()> getText
SearchTerm(const QCString &w, const SectionInfo *s)
SearchTerm(const QCString &w, const Definition *d)
QCString title
title to show in the output for this search result
std::variant< std::monostate, const Definition *, const SectionInfo * > LinkInfo
QCString word
lower case word that is indexed (e.g. name of a symbol, or word from a title)
LinkInfo info
definition to link to
QCString termEncoded() const
encoded version of the search term
Various UTF8 related helper functions.