summaryrefslogtreecommitdiff
path: root/emojis.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-11-10 01:38:44 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2020-11-10 01:38:44 -0500
commiteb0feef51166eeabd58993c484e85e0739285aa1 (patch)
tree200c93680df8ecbcf127cc59e2f940e9f8af4b90 /emojis.hpp
parent823e1786e016a0dce58ffda0506608f2a2fce932 (diff)
downloadabaddon-portaudio-eb0feef51166eeabd58993c484e85e0739285aa1.tar.gz
abaddon-portaudio-eb0feef51166eeabd58993c484e85e0739285aa1.zip
use textviews in channel list + parse emojis
Diffstat (limited to 'emojis.hpp')
-rw-r--r--emojis.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/emojis.hpp b/emojis.hpp
index b3c2925..b84feb7 100644
--- a/emojis.hpp
+++ b/emojis.hpp
@@ -15,6 +15,7 @@ public:
static Glib::ustring PatternToHex(const Glib::ustring &pattern);
static Glib::ustring HexToPattern(Glib::ustring hex);
const std::vector<Glib::ustring> &GetPatterns() const;
+ void ReplaceEmojis(Glib::RefPtr<Gtk::TextBuffer> buf, int size = 24);
private:
std::unordered_map<std::string, std::pair<int, int>> m_index; // pattern -> [pos, len]