diff options
author | Kitty Barnett <develop@catznip.com> | 2022-11-02 19:05:24 +0100 |
---|---|---|
committer | Kitty Barnett <develop@catznip.com> | 2022-11-02 19:08:02 +0100 |
commit | c40d3351d511b19f4468f7467be38499bf16588f (patch) | |
tree | 8b3e6827e2d83498c886e446de14a780c2fcbfeb /indra/llui/llemojidictionary.h | |
parent | d1dbefc09b77990563d22aaf08d0c5708cc6cbbe (diff) |
Commit immediately if the user already typed a full shortcode
Diffstat (limited to 'indra/llui/llemojidictionary.h')
-rw-r--r-- | indra/llui/llemojidictionary.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llui/llemojidictionary.h b/indra/llui/llemojidictionary.h index 3fa55cd417..0cde663719 100644 --- a/indra/llui/llemojidictionary.h +++ b/indra/llui/llemojidictionary.h @@ -58,14 +58,16 @@ class LLEmojiDictionary : public LLParamSingleton<LLEmojiDictionary>, public LLI public: static void initClass(); LLWString findMatchingEmojis(const std::string& needle) const; - std::string getNameFromEmoji(llwchar ch); + const LLEmojiDescriptor* getDescriptorFromShortCode(const std::string& short_code) const; + std::string getNameFromEmoji(llwchar ch) const; private: void addEmoji(LLEmojiDescriptor&& descr); private: std::list<LLEmojiDescriptor> mEmojis; - std::map<llwchar, const LLEmojiDescriptor*> mEmoji2Descr; + std::map<llwchar, const LLEmojiDescriptor&> mEmoji2Descr; + std::map<std::string, const LLEmojiDescriptor&> mShortCode2Descr; }; // ============================================================================ |