Android Unicode Check isAllZenkaku(String str)

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

Description

is All Zenkaku

Declaration

public static boolean isAllZenkaku(String str) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean isAllZenkaku(String str) {
        boolean ret = true;
        if (str != null) {
            byte[] bytes = str.getBytes();
            ret = (bytes.length == str.length() * 2);
        }/*  ww w  .  j a va 2 s  .co  m*/
        return ret;
    }
}

Related

  1. isAllHankaku(String str)
  2. filterOutKana(String text)
  3. filterOutNonKanji(String text)