ZWEmoji
ZWEmoji copied to clipboard
Does not support the new emoji with color modifier.
The existing algorithm I believe is flawed as it search and replace based on a hash of emoji. For emoji wiith color modifier, you often match a subset of the full emoji.
I believe a better solution might be transversing composed characters and then checking it against the hash instead.
I think it could have a performance boost too because it only checks the string 1 time, instead of N, the number of emoji we have.
If we know what range emoji starts with, we can even do a simple swipe and see if it need processing and break early if we can.
Secondly, to introduce new emojified key to support these modifier.