19#include <unordered_map>
253 if (n.
isEmpty())
return T::UNKNOWN;
257 return it!=
m_map.end() ? it->second : T::UNKNOWN;
262 for (
const auto &[name,
id] :
m_map)
266 if (curVal == n || (curVal == (
static_cast<T
>(
static_cast<int>(n) |
static_cast<int>(T::SIMPLESECT_BIT)))))
return name.c_str();
Class representing a mapping from command names to command IDs.
QCString find(const T n) const
const CommandMap< T > & m_map
Mapper(const CommandMap< T > &cm, bool caseSensitive)
T map(const QCString &n) const
This is an alternative implementation of QCString.
bool isEmpty() const
Returns TRUE iff the string is empty.
const std::string & str() const
std::unordered_map< std::string, T > CommandMap
Namespace for the doxygen and HTML command mappers.
const Mapper< HtmlTagType > * htmlTagMapper
const Mapper< CommandType > * cmdMapper