Java Emoji Check isEmoji(char c)

Here you can find the source of isEmoji(char c)

Description

is Emoji

License

Open Source License

Declaration

public static boolean isEmoji(char c) 

Method Source Code

//package com.java2s;
/*//  ww w.  ja  va  2  s. com
 * imoten - i mode.net mail tensou(forward)
 *
 * Copyright (C) 2010 shoozhoo (http://code.google.com/p/imoten/)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
 */

public class Main {

    public static boolean isEmoji(char c) {
        if (Character.UnicodeBlock.of(c) == Character.UnicodeBlock.PRIVATE_USE_AREA) {
            return true;
        } else {
            return false;
        }
    }
}

Related

  1. emoji(int hexEmoji)
  2. emoji(String emoji)
  3. filterEmoji(String source)
  4. resolveToEmoji(String str)
  5. resolveToEmojiFromByte(String str)