I've got a string that is a mixture of text and emoji. I want to split the string into characters and deal with each character one at a time.
The issue here is that Emoji can be from 2 to 7 bytes long. Ex: the emoji's encoding could also include the skin tone modifier and sex modifier. When I've tried iterating through the characters as a character sequence, I end up splitting the emoji.
Is there any somewhat reliable way to split a string in such a way that the bytes that are part of a single emoji stay together?