Android Chinese String Check isChinese(String str)

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

Description

is Chinese

Declaration

public static boolean isChinese(String str) 

Method Source Code

//package com.java2s;

import java.util.regex.Pattern;

public class Main {

    public static boolean isChinese(String str) {
        Pattern pattern = Pattern.compile("[\u0391-\uFFE5]+$");
        return pattern.matcher(str).matches();
    }//from w  ww  . ja v a  2s  .  c o m
}

Related

  1. isChinese(String strName)
  2. checkStringIsChinese(String str)
  3. isChinese(char c)
  4. isChinese(String str)