Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add naïve reverse mapped dictionary of aliases #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pizthewiz
Copy link

The reversed dictionary is generated at runtime to avoid maintaining two distinct source lists. Duplicate emoji are trimmed through the use of NSSet and each is paired to a code by selecting the first result of -[NSDictionary allKeysForObject:]. It is important to note that the keys are not ordered and grouped sequentially as defined in EMOJI_HASH and in turn, will result in :-1: paired to 👎 and not :+1: paired to 👍 but instead :thumbsup:.

Jean-Pierre Mouilleseaux added 2 commits January 10, 2014 12:26
The reversed dictionary is generated at runtime to avoid maintaining two distinct source lists. Duplicate emoji are trimmed through the use of NSSet and each is paired to a code by selecting the first result of `-[NSDictionary allKeysForObject:]`. It is important to note that the keys are not ordered and grouped sequentially as defined in `EMOJI_HASH` and in turn, will result in `:-1:` paired to 👎  and *not* `:+1:` paired to 👍  but instead `:thumbsup:`.
Associate pointer * to variable not type - old habits die hard 💀
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant