List of utility methods to do Char Value Check
int | getCharType(char c) get Char Type if (isArabic(c)) return ArabicChar; else if (isNumber(c)) return NumberChar; else return LatinChar; |
boolean | isAlef(char c) is Alef return (c == 0x0622 || c == 0x0623 || c == 0x0625 || c == 0x0627);
|
boolean | isArabic(char c) is Arabic return (0x0621 <= c && c <= 0x06ED);
|
boolean | isHah(char c) is Hah return (c == 0x0629 || c == 0x0647);
|
boolean | isLatin(char c) is Latin return (0x41 <= c && c <= 0x5A) || (0x61 <= c && c <= 0x7A);
|
boolean | isNumber(char c) is Number return (0x30 <= c && c <= 0x39);
|
boolean | isTashekil(char c) is Tashekil return (0x064B <= c && c <= 0x0653);
|
boolean | isTatweel(char c) is Tatweel return (c == 0x0640);
|
boolean | isYeh(char c) is Yeh return (c == 0x0649 || c == 0x0649);
|
boolean | isLetter(char ch) is Letter return (('a' <= ch) && (ch <= 'z')) || (('A' <= ch) && (ch <= 'Z')) || (ch == '\'') || (ch == '^') || ((0xC0 <= ch) && (ch <= 0xFF) && (ch != 0xD7) && (ch != 0xF7)) ... |