@Test public void normalizeEmoji() throws Exception { String s = new StringBuilder() .append("Any funny text goes here ") .appendCodePoint(0x1F606) .appendCodePoint(0x1F606) .appendCodePoint(0x1F606) .append(" ") .appendCodePoint(0x1F61B) .toString(); Assert.assertEquals( "Any funny text goes here ", normalizer.normalize(s)); }
public CharSequence normalize (CharSequence text) { return EMOJI_REGEX.matcher(text).replaceAll(" "); }
EmojiCharSequenceNormalizer implements CharSequenceNormalizer { public CharSequence normalize (CharSequence text) { return EMOJI_REGEX.matcher(text).replaceAll(" "); } }
EmojiCharSequenceNormalizer implements CharSequenceNormalizer { public CharSequence normalize (CharSequence text) { return EMOJI_REGEX.matcher(text).replaceAll(" "); }  }
EmojiCharSequenceNormalizer implements CharSequenceNormalizer { public CharSequence normalize (CharSequence text) { return EMOJI_REGEX.matcher(text).replaceAll(" "); }  static EmojiCharSequenceNormalizer getInstance(); CharSequence normalize(CharSequence text); }
EmojiCharSequenceNormalizer implements CharSequenceNormalizer { public CharSequence normalize (CharSequence text) { return EMOJI_REGEX.matcher(text).replaceAll(" "); }  static EmojiCharSequenceNormalizer getInstance(); CharSequence normalize(CharSequence text);  }