@Test public void isVowelTest() { String vowels = "aeiuüıoöâîû"; for (char c : vowels.toCharArray()) { Assert.assertTrue(TurkishAlphabet.getLetter(c).isVowel()); } String nonvowels = "bcçdfgğjklmnprştvxwzq."; for (char c : nonvowels.toCharArray()) { Assert.assertFalse(TurkishAlphabet.getLetter(c).isVowel()); } }
public static TurkicLetter getLetter(char c) { if (c >= MAX_CHAR_VALUE || !VALID_CHAR_TABLE[c]) return TurkicLetter.builder(c, 9999).build(); else return CHAR_TO_LETTER_LOOKUP[c]; }
TurkishAlphabet { public static TurkicLetter getLetter(char c) { if (c >= MAX_CHAR_VALUE || !VALID_CHAR_TABLE[c]) return TurkicLetter.builder(c, 9999).build(); else return CHAR_TO_LETTER_LOOKUP[c]; } }
TurkishAlphabet { public static TurkicLetter getLetter(char c) { if (c >= MAX_CHAR_VALUE || !VALID_CHAR_TABLE[c]) return TurkicLetter.builder(c, 9999).build(); else return CHAR_TO_LETTER_LOOKUP[c]; } private  TurkishAlphabet(); }
TurkishAlphabet { public static TurkicLetter getLetter(char c) { if (c >= MAX_CHAR_VALUE || !VALID_CHAR_TABLE[c]) return TurkicLetter.builder(c, 9999).build(); else return CHAR_TO_LETTER_LOOKUP[c]; } private  TurkishAlphabet(); static TurkicLetter devoice(TurkicLetter l); static TurkicLetter voice(TurkicLetter l); static TurkicLetter getLetter(char c); static TurkishChar getChar(char c); static boolean isValid(char c); static String capitalize(String str); static String uncapitalize(String str); }
TurkishAlphabet { public static TurkicLetter getLetter(char c) { if (c >= MAX_CHAR_VALUE || !VALID_CHAR_TABLE[c]) return TurkicLetter.builder(c, 9999).build(); else return CHAR_TO_LETTER_LOOKUP[c]; } private  TurkishAlphabet(); static TurkicLetter devoice(TurkicLetter l); static TurkicLetter voice(TurkicLetter l); static TurkicLetter getLetter(char c); static TurkishChar getChar(char c); static boolean isValid(char c); static String capitalize(String str); static String uncapitalize(String str); static final char C_CC; static final char C_cc; static final char C_GG; static final char C_gg; static final char C_ii; static final char C_II; static final char C_OO; static final char C_oo; static final char C_SS; static final char C_ss; static final char C_UU; static final char C_uu; static final char A_CIRC; static final char a_CIRC; static final char I_CIRC; static final char i_CIRC; static final char U_CIRC; static final char u_CIRC; static final TurkicLetter L_a; static final TurkicLetter L_b; static final TurkicLetter L_c; static final TurkicLetter L_cc; static final TurkicLetter L_d; static final TurkicLetter L_e; static final TurkicLetter L_f; static final TurkicLetter L_g; static final TurkicLetter L_gg; static final TurkicLetter L_h; static final TurkicLetter L_ii; static final TurkicLetter L_i; static final TurkicLetter L_j; static final TurkicLetter L_k; static final TurkicLetter L_l; static final TurkicLetter L_m; static final TurkicLetter L_n; static final TurkicLetter L_o; static final TurkicLetter L_oo; static final TurkicLetter L_p; static final TurkicLetter L_r; static final TurkicLetter L_s; static final TurkicLetter L_ss; static final TurkicLetter L_t; static final TurkicLetter L_u; static final TurkicLetter L_uu; static final TurkicLetter L_v; static final TurkicLetter L_y; static final TurkicLetter L_z; static final TurkicLetter L_q; static final TurkicLetter L_w; static final TurkicLetter L_x; static final TurkicLetter L_ac; static final TurkicLetter L_ic; static final TurkicLetter L_uc; static final TurkicLetter P_Dot; static final TurkicLetter P_Comma; static final TurkicLetter P_Hyphen; static final TurkicLetter P_Colon; static final TurkicLetter P_Semicolon; static final TurkicLetter P_Plus; static final TurkicLetter P_Popen; static final TurkicLetter P_Pclose; static final TurkicLetter P_Bopen; static final TurkicLetter P_Bclose; static final TurkicLetter P_CBopen; static final TurkicLetter P_CBclose; static final TurkicLetter P_QuestionMark; static final TurkicLetter P_ExcMark; static final TurkicLetter P_SQuote; static final TurkicLetter P_DQuote; static final TurkicLetter P_Slash; static final TurkicLetter P_Percent; static final TurkicLetter P_Number; static final TurkicLetter P_Dollar; static final TurkicLetter P_Yen; static final TurkicLetter P_Pound; static final TurkicLetter P_Euro; static final TurkicLetter N_0; static final TurkicLetter N_1; static final TurkicLetter N_2; static final TurkicLetter N_3; static final TurkicLetter N_4; static final TurkicLetter N_5; static final TurkicLetter N_6; static final TurkicLetter N_7; static final TurkicLetter N_8; static final TurkicLetter N_9; static final TurkicLetter[] TURKISH_LETTERS; static final TurkicLetter[] TURKISH_ALPHA_LETTERS; static final TurkicLetter[] TURKISH_PUNC_LETTERS; static final TurkicLetter[] TURKISH_NUMERIC_LETTERS; static final ImmutableSetMultimap<TurkicLetter, TurkicLetter> Inverse_Voicing_Map; static final ImmutableSet<TurkicLetter> Devoicable_Letters; static final ImmutableSet<TurkicLetter> Voicable_Letters; }