I\'m looking to count the number of perceived emoji characters in a provided Java string. I\'m currently using the emoji4j library, but it doesn\'t work for grapheme cluster
I ended up using the ICU library, which worked much better. No changes (aside from import statements) were needed from my original codeblock, as it simply provides a different implementation of BreakIterator.