summaryrefslogtreecommitdiff
path: root/indra/llui/llemojidictionary.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llemojidictionary.h')
-rw-r--r--indra/llui/llemojidictionary.h6
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;
};
// ============================================================================