Chatterino
Public Member Functions | List of all members
chatterino::EmoteMap Class Reference

#include <Emote.hpp>

Inheritance diagram for chatterino::EmoteMap:
[legend]
Collaboration diagram for chatterino::EmoteMap:
[legend]

Public Member Functions

EmoteMap::const_iterator findEmote (const QString &emoteNameHint, const QString &emoteID) const
 

Member Function Documentation

◆ findEmote()

EmoteMap::const_iterator chatterino::EmoteMap::findEmote ( const QString &  emoteNameHint,
const QString &  emoteID 
) const

Finds an emote by it's id with a hint to it's name.

  1. Searches by name for the emote, checking if the ids match (fast-path).
  2. Searches through the map for an emote with the emoteID (slow-path).
Parameters
emoteNameHintA hint to the name of the searched emote, may be empty.
emoteIDThe emote id to search for.
Returns
An iterator to the found emote (possibly this->end()).
Here is the caller graph for this function:

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