1
回答
Emoji 过滤问题请教
华为云4核8G,高性能云服务器,免费试用   

@彭博 你好,想跟你请教个问题:


我看过你的EmojiFilter,帮了我很大忙,我想问下


private static boolean isEmojiCharacter(char codePoint) {
		return (codePoint == 0x0) || (codePoint == 0x9) || (codePoint == 0xA)
				|| (codePoint == 0xD)
				|| ((codePoint >= 0x20) && (codePoint <= 0xD7FF))
				|| ((codePoint >= 0xE000) && (codePoint <= 0xFFFD))
				|| ((codePoint >= 0x10000) && (codePoint <= 0x10FFFF));
	}

你是从何处得到Emoji一定在这些字段之间的?

举报
顶部