diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-17 23:24:44 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-17 23:24:44 -0500 |
commit | 4fd7f9d75e4edd42f559fc8653f8f82bf275e865 (patch) | |
tree | e0c9c1c2b7d2002d48bc094601424f3729db59b7 /emojis.hpp | |
parent | 744e42892d3da3247df4e04f0d97e93e6d50799a (diff) | |
download | abaddon-portaudio-4fd7f9d75e4edd42f559fc8653f8f82bf275e865.tar.gz abaddon-portaudio-4fd7f9d75e4edd42f559fc8653f8f82bf275e865.zip |
put tooltips on reactions
Diffstat (limited to 'emojis.hpp')
-rw-r--r-- | emojis.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -17,8 +17,10 @@ public: const std::vector<Glib::ustring> &GetPatterns() const; const std::map<std::string, std::string> &GetShortCodes() const; void ReplaceEmojis(Glib::RefPtr<Gtk::TextBuffer> buf, int size = 24); + std::string GetShortCodeForPattern(const Glib::ustring &pattern); private: + std::unordered_map<std::string, std::string> m_pattern_shortcode_index; std::map<std::string, std::string> m_shortcode_index; // shortcode -> pattern std::unordered_map<std::string, std::pair<int, int>> m_index; // pattern -> [pos, len] FILE *m_fp = nullptr; |