public class WechatEmojiConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
protected Map<String,String> |
otherToWechatMap |
protected List<String> |
unsupportedUnicodeBlocks |
protected Map<String,String> |
wechatToOtherMap |
| Constructor and Description |
|---|
WechatEmojiConverter(String emojiConversionSetting,
List<String> unsupportedUnicodeBlocks,
Collection<Resource> conversionResources) |
| Modifier and Type | Method and Description |
|---|---|
String |
convertFromUTF8ToWeChat(String input) |
String |
convertFromWeChatToUTF8(String input) |
boolean |
hasUnsupportedEmojis(String input)
returns true if the input contains an unsupported emoji (utf8 characters within the ranges definde din unsupportedUnicodeBlocks
|
public WechatEmojiConverter(String emojiConversionSetting, List<String> unsupportedUnicodeBlocks, Collection<Resource> conversionResources)
public boolean hasUnsupportedEmojis(String input)
input - the input string to be tested against