@Test public void isDiacriticTest() { assertDiacriticTest(HIRAGANA_1, false); assertDiacriticTest(HIRAGANA_2_BASE, false); assertDiacriticTest(HIRAGANA_2_BASE_DIGRAPHS, false); assertDiacriticTest(HIRAGANA_2_DAKUTEN, true); assertDiacriticTest(HIRAGANA_2_DAKUTEN_DIGRAPHS, true); assertDiacriticTest(HIRAGANA_3_BASE, false); assertDiacriticTest(HIRAGANA_3_BASE_DIGRAPHS, false); assertDiacriticTest(HIRAGANA_3_DAKUTEN, true); assertDiacriticTest(HIRAGANA_3_DAKUTEN_DIGRAPHS, true); assertDiacriticTest(HIRAGANA_4_BASE, false); assertDiacriticTest(HIRAGANA_4_BASE_DIGRAPHS, false); assertDiacriticTest(HIRAGANA_4_DAKUTEN, true); assertDiacriticTest(HIRAGANA_4_DAKUTEN_DIGRAPHS, true); assertDiacriticTest(HIRAGANA_5, false); assertDiacriticTest(HIRAGANA_5_DIGRAPHS, false); assertDiacriticTest(HIRAGANA_6_BASE, false); assertDiacriticTest(HIRAGANA_6_BASE_DIGRAPHS, false); assertDiacriticTest(HIRAGANA_6_DAKUTEN, true); assertDiacriticTest(HIRAGANA_6_DAKUTEN_DIGRAPHS, true); assertDiacriticTest(HIRAGANA_6_HANDAKUTEN, true); assertDiacriticTest(HIRAGANA_6_HANDAKUTEN_DIGRAPHS, true); assertDiacriticTest(HIRAGANA_7, false); assertDiacriticTest(HIRAGANA_7_DIGRAPHS, false); assertDiacriticTest(HIRAGANA_8, false); assertDiacriticTest(HIRAGANA_8_DIGRAPHS, false); assertDiacriticTest(HIRAGANA_9, false); assertDiacriticTest(HIRAGANA_10_W_GROUP, false); assertDiacriticTest(HIRAGANA_10_N_CONSONANT, false); assertDiacriticTest(KATAKANA_1, false); assertDiacriticTest(KATAKANA_2_BASE, false); assertDiacriticTest(KATAKANA_2_BASE_DIGRAPHS, false); assertDiacriticTest(KATAKANA_2_DAKUTEN, true); assertDiacriticTest(KATAKANA_2_DAKUTEN_DIGRAPHS, true); assertDiacriticTest(KATAKANA_3_BASE, false); assertDiacriticTest(KATAKANA_3_BASE_DIGRAPHS, false); assertDiacriticTest(KATAKANA_3_DAKUTEN, true); assertDiacriticTest(KATAKANA_3_DAKUTEN_DIGRAPHS, true); assertDiacriticTest(KATAKANA_4_BASE, false); assertDiacriticTest(KATAKANA_4_BASE_DIGRAPHS, false); assertDiacriticTest(KATAKANA_4_DAKUTEN, true); assertDiacriticTest(KATAKANA_4_DAKUTEN_DIGRAPHS, true); assertDiacriticTest(KATAKANA_5, false); assertDiacriticTest(KATAKANA_5_DIGRAPHS, false); assertDiacriticTest(KATAKANA_6_BASE, false); assertDiacriticTest(KATAKANA_6_BASE_DIGRAPHS, false); assertDiacriticTest(KATAKANA_6_DAKUTEN, true); assertDiacriticTest(KATAKANA_6_DAKUTEN_DIGRAPHS, true); assertDiacriticTest(KATAKANA_6_HANDAKUTEN, true); assertDiacriticTest(KATAKANA_6_HANDAKUTEN_DIGRAPHS, true); assertDiacriticTest(KATAKANA_7, false); assertDiacriticTest(KATAKANA_7_DIGRAPHS, false); assertDiacriticTest(KATAKANA_8, false); assertDiacriticTest(KATAKANA_8_DIGRAPHS, false); assertDiacriticTest(KATAKANA_9, false); assertDiacriticTest(KATAKANA_10_W_GROUP, false); assertDiacriticTest(KATAKANA_10_N_CONSONANT, false); }
public boolean isDiacritic() { for (int i = 0; i < kana.length(); i++) if (isDiacritic(Character.codePointAt(kana, i))) return true; return false; }
KanaQuestion extends Question { public boolean isDiacritic() { for (int i = 0; i < kana.length(); i++) if (isDiacritic(Character.codePointAt(kana, i))) return true; return false; } }
KanaQuestion extends Question { public boolean isDiacritic() { for (int i = 0; i < kana.length(); i++) if (isDiacritic(Character.codePointAt(kana, i))) return true; return false; } KanaQuestion(String kana, String romaji);   KanaQuestion(String kana, String romaji, Map<RomanizationSystem, String> altRomaji); }
KanaQuestion extends Question { public boolean isDiacritic() { for (int i = 0; i < kana.length(); i++) if (isDiacritic(Character.codePointAt(kana, i))) return true; return false; } KanaQuestion(String kana, String romaji);   KanaQuestion(String kana, String romaji, Map<RomanizationSystem, String> altRomaji); @Override ReferenceCell generateReference(Context context); boolean isDigraph(); boolean isDiacritic(); }
KanaQuestion extends Question { public boolean isDiacritic() { for (int i = 0; i < kana.length(); i++) if (isDiacritic(Character.codePointAt(kana, i))) return true; return false; } KanaQuestion(String kana, String romaji);   KanaQuestion(String kana, String romaji, Map<RomanizationSystem, String> altRomaji); @Override ReferenceCell generateReference(Context context); boolean isDigraph(); boolean isDiacritic();  }