Java Code Examples for com.vdurmont.emoji.EmojiParser#parseToUnicode()

The following examples show how to use com.vdurmont.emoji.EmojiParser#parseToUnicode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EmojiUtils.java    From feiqu-opensource with Apache License 2.0 2 votes vote down vote up
/**
 * Replaces the emoji's aliases (between 2 ':') occurrences and the html
 * representations by their unicode.
 *
 * @param input the string to parse
 *
 * @return the string with the emojis replaced by their alias.
 */
public static String toUnicode(String input) {
    return EmojiParser.parseToUnicode(input);
}
 
Example 2
Source File: Commons.java    From my-site with Apache License 2.0 2 votes vote down vote up
/**
 * An :grinning:awesome :smiley:string 😄with a few :wink:emojis!
 * <p>
 * 这种格式的字符转换为emoji表情
 *
 * @param value
 * @return
 */
public static String emoji(String value) {
    return EmojiParser.parseToUnicode(value);
}
 
Example 3
Source File: Commons.java    From Jantent with MIT License 2 votes vote down vote up
/**
 * An :grinning:awesome :smiley:string &#128516;with a few :wink:emojis!
 * <p>
 * 这种格式的字符转换为emoji表情
 *
 * @param value
 * @return
 */
public static String emoji(String value) {
    return EmojiParser.parseToUnicode(value);
}
 
Example 4
Source File: Commons.java    From tale with MIT License 2 votes vote down vote up
/**
 * An :grinning:awesome :smiley:string &#128516;with a few :wink:emojis!
 * <p>
 * 这种格式的字符转换为emoji表情
 *
 * @param value
 * @return
 */
public static String emoji(String value) {
    return EmojiParser.parseToUnicode(value);
}