Android Utililty Methods Char Value Check

List of utility methods to do Char Value Check

Description

The list of methods to do Char Value Check are organized into topic(s).

Method

intgetCharType(char c)
get Char Type
if (isArabic(c))
    return ArabicChar;
else if (isNumber(c))
    return NumberChar;
else
    return LatinChar;
booleanisAlef(char c)
is Alef
return (c == 0x0622 || c == 0x0623 || c == 0x0625 || c == 0x0627);
booleanisArabic(char c)
is Arabic
return (0x0621 <= c && c <= 0x06ED);
booleanisHah(char c)
is Hah
return (c == 0x0629 || c == 0x0647);
booleanisLatin(char c)
is Latin
return (0x41 <= c && c <= 0x5A) || (0x61 <= c && c <= 0x7A);
booleanisNumber(char c)
is Number
return (0x30 <= c && c <= 0x39);
booleanisTashekil(char c)
is Tashekil
return (0x064B <= c && c <= 0x0653);
booleanisTatweel(char c)
is Tatweel
return (c == 0x0640);
booleanisYeh(char c)
is Yeh
return (c == 0x0649 || c == 0x0649);
booleanisLetter(char ch)
is Letter
return (('a' <= ch) && (ch <= 'z'))
        || (('A' <= ch) && (ch <= 'Z'))
        ||
        (ch == '\'')
        ||
        (ch == '^')
        ||
        ((0xC0 <= ch) && (ch <= 0xFF) && (ch != 0xD7) && (ch != 0xF7))
...