Doxygen
Loading...
Searching...
No Matches
SearchIndexInfo Struct Reference

Table entry to allow filtering the search results per category. More...

#include <src/searchindex_js.h>

+ Collaboration diagram for SearchIndexInfo:

Public Member Functions

void add (const SearchTerm &term)
 

Public Attributes

QCString name
 
std::function< QCString()> getText
 
SearchIndexMap symbolMap
 

Detailed Description

Table entry to allow filtering the search results per category.

Definition at line 62 of file searchindex_js.h.

Member Function Documentation

◆ add()

void SearchIndexInfo::add ( const SearchTerm & term)

Definition at line 832 of file searchindex_js.cpp.

833{
834 std::string letter = convertUTF8ToLower(getUTF8CharAt(term.word.str(),0));
835 auto &list = symbolMap[letter]; // creates a new entry if not found
836 list.push_back(term);
837}
#define term(fmt,...)
Definition message.h:94
SearchIndexMap symbolMap
std::string convertUTF8ToLower(const std::string &input)
Converts the input string into a lower case version, also taking into account non-ASCII characters th...
Definition utf8.cpp:187
std::string getUTF8CharAt(const std::string &input, size_t pos)
Returns the UTF8 character found at byte position pos in the input string.
Definition utf8.cpp:127

References convertUTF8ToLower(), getUTF8CharAt(), symbolMap, and term.

Member Data Documentation

◆ getText

std::function<QCString()> SearchIndexInfo::getText

Definition at line 66 of file searchindex_js.h.

◆ name

QCString SearchIndexInfo::name

Definition at line 65 of file searchindex_js.h.

◆ symbolMap

SearchIndexMap SearchIndexInfo::symbolMap

Definition at line 67 of file searchindex_js.h.

Referenced by add().


The documentation for this struct was generated from the following files: