@SuppressWarnings("static-method") @Test public void testIsDiacritical() { for (int c = Character.MIN_VALUE; c < Character.MAX_VALUE; ++c) { final boolean expected = AbstractCharacterTextSource.MIN_DIACRITICAL <= c && c <= AbstractCharacterTextSource.MAX_DIACRITICAL && c != 215 && c != 247; final boolean actual = AbstractCharacterTextSource.isDiacritical(c); Assert.assertEquals( String.format("unexpected entry (c=%d); ", c), expected, actual); } }
public static boolean isDiacritical(final int c_) { return MIN_DIACRITICAL <= c_ && c_ <= MAX_DIACRITICAL && mapDiacriticalToASCII(c_) != c_; }
AbstractCharacterTextSource extends AbstractTextSource<Character> { public static boolean isDiacritical(final int c_) { return MIN_DIACRITICAL <= c_ && c_ <= MAX_DIACRITICAL && mapDiacriticalToASCII(c_) != c_; } }
AbstractCharacterTextSource extends AbstractTextSource<Character> { public static boolean isDiacritical(final int c_) { return MIN_DIACRITICAL <= c_ && c_ <= MAX_DIACRITICAL && mapDiacriticalToASCII(c_) != c_; }  }
AbstractCharacterTextSource extends AbstractTextSource<Character> { public static boolean isDiacritical(final int c_) { return MIN_DIACRITICAL <= c_ && c_ <= MAX_DIACRITICAL && mapDiacriticalToASCII(c_) != c_; }  static boolean isDiacritical(final int c_); static boolean isPunctuation(final int c_); static boolean isWhitespace(final int c_); static int mapDiacriticalToASCII(final int c_); }
AbstractCharacterTextSource extends AbstractTextSource<Character> { public static boolean isDiacritical(final int c_) { return MIN_DIACRITICAL <= c_ && c_ <= MAX_DIACRITICAL && mapDiacriticalToASCII(c_) != c_; }  static boolean isDiacritical(final int c_); static boolean isPunctuation(final int c_); static boolean isWhitespace(final int c_); static int mapDiacriticalToASCII(final int c_); static final char TAB; static final char LF; static final char VTAB; static final char FF; static final char CR; static final char FILESEP; static final char GROUPSEP; static final char RECORDSEP; static final char UNITSEP; static final char SPACE; static final char NBSP; static final char FIGURESPACE; static final char NNBSP; static final int[] PUNCTUATION; static final char MIN_DIACRITICAL; static final char MAX_DIACRITICAL; static final int[] DIACRITICAL_TO_ASCII_MAP; }