Java Chinese Check isChina(String str)

Here you can find the source of isChina(String str)

Description

is China

License

Apache License

Declaration

public static boolean isChina(String str) 

Method Source Code

//package com.java2s;
/*//w  ww  .j  av a  2s  . co m
 * Copyright (c) 2014. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

public class Main {
    public static boolean isChina(String str) {
        return str.matches("[\\u4E00-\\u9FA5]+");
    }
}

Related

  1. checkCharIsChiness(char c)
  2. isChinaLanguage(char[] chars)
  3. isChinaLanguage(String str)
  4. isChinaOrEnName(String str)
  5. isChineseChar(char c)