Here you can find the source of getCharType(char c)
public static int getCharType(char c)
//package com.java2s; public class Main { static final int ArabicChar = 1; static final int LatinChar = 2; static final int NumberChar = 2; public static int getCharType(char c) { if (isArabic(c)) return ArabicChar; else if (isNumber(c)) return NumberChar; else/*from www . j a v a 2 s . com*/ return LatinChar; } public static boolean isArabic(char c) { return (0x0621 <= c && c <= 0x06ED); } public static boolean isNumber(char c) { return (0x30 <= c && c <= 0x39); } }