From 27e6bca65e8991ec1525dafd9ac966ae614bc003 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 6 Apr 2021 00:56:24 -0400 Subject: allow usage of multiple emoji shortcodes also raise max completer entries --- emojis.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'emojis.hpp') diff --git a/emojis.hpp b/emojis.hpp index cbcb2ca..61b8a71 100644 --- a/emojis.hpp +++ b/emojis.hpp @@ -12,15 +12,13 @@ public: EmojiResource(std::string filepath); bool Load(); Glib::RefPtr GetPixBuf(const Glib::ustring &pattern); - static Glib::ustring PatternToHex(const Glib::ustring &pattern); - static Glib::ustring HexToPattern(Glib::ustring hex); const std::vector &GetPatterns() const; const std::map &GetShortCodes() const; void ReplaceEmojis(Glib::RefPtr buf, int size = 24); std::string GetShortCodeForPattern(const Glib::ustring &pattern); private: - std::unordered_map m_pattern_shortcode_index; + std::unordered_map> m_pattern_shortcode_index; std::map m_shortcode_index; // shortcode -> pattern std::unordered_map> m_index; // pattern -> [pos, len] FILE *m_fp = nullptr; -- cgit v1.2.3