protected static UnicodeCandidate getNextUnicodeCandidate ( char [ ] chars , int start ) { for ( int i = start ; i < chars . length ; i ++ ) { int emojiEnd = getEmojiEndPos ( chars , i ) ; if ( emojiEnd != - 1 ) { Emoji emoji = EmojiManager . getByUnicode ( new String ( chars , i , emojiEnd - i ) ) ; String fitzpatrickString = ( emojiEnd + 2 <= chars . length ) ? new String ( chars , emojiEnd , 2 ) : null ; return new UnicodeCandidate ( emoji , fitzpatrickString , i ) ; } } return null ; }
Finds the next UnicodeCandidate after a given starting index