Android Unicode Check isAllHankaku(String str)

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

Description

is All Hankaku

Declaration

public static boolean isAllHankaku(String str) 

Method Source Code

//package com.java2s;

public class Main {

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

Related

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