summaryrefslogtreecommitdiff
path: root/emojis.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'emojis.hpp')
-rw-r--r--emojis.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/emojis.hpp b/emojis.hpp
index b84feb7..3d494c2 100644
--- a/emojis.hpp
+++ b/emojis.hpp
@@ -15,9 +15,11 @@ public:
static Glib::ustring PatternToHex(const Glib::ustring &pattern);
static Glib::ustring HexToPattern(Glib::ustring hex);
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);
private:
+ 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;
std::string m_filepath;