@Test public void testIsInitialCapitalLetter() { Assert.assertTrue(StringPattern.recognize("Test").isInitialCapitalLetter()); Assert.assertFalse(StringPattern.recognize("tEST").isInitialCapitalLetter()); Assert.assertTrue(StringPattern.recognize("TesT").isInitialCapitalLetter()); Assert.assertTrue(StringPattern.recognize("Üäöæß").isInitialCapitalLetter()); Assert.assertFalse(StringPattern.recognize("いイ井").isInitialCapitalLetter()); Assert.assertTrue(StringPattern.recognize("Iいイ井").isInitialCapitalLetter()); Assert.assertTrue(StringPattern.recognize("Ｉいイ井").isInitialCapitalLetter()); }
public boolean isInitialCapitalLetter() { return (pattern & INITAL_CAPITAL_LETTER) > 0; }
StringPattern { public boolean isInitialCapitalLetter() { return (pattern & INITAL_CAPITAL_LETTER) > 0; } }
StringPattern { public boolean isInitialCapitalLetter() { return (pattern & INITAL_CAPITAL_LETTER) > 0; } private  StringPattern(int pattern, int digits); }
StringPattern { public boolean isInitialCapitalLetter() { return (pattern & INITAL_CAPITAL_LETTER) > 0; } private  StringPattern(int pattern, int digits); static StringPattern recognize(String token); boolean isAllLetter(); boolean isInitialCapitalLetter(); boolean isAllCapitalLetter(); boolean isAllLowerCaseLetter(); boolean isAllDigit(); boolean isAllHiragana(); boolean isAllKatakana(); int digits(); boolean containsPeriod(); boolean containsComma(); boolean containsSlash(); boolean containsDigit(); boolean containsHyphen(); boolean containsLetters(); }
StringPattern { public boolean isInitialCapitalLetter() { return (pattern & INITAL_CAPITAL_LETTER) > 0; } private  StringPattern(int pattern, int digits); static StringPattern recognize(String token); boolean isAllLetter(); boolean isInitialCapitalLetter(); boolean isAllCapitalLetter(); boolean isAllLowerCaseLetter(); boolean isAllDigit(); boolean isAllHiragana(); boolean isAllKatakana(); int digits(); boolean containsPeriod(); boolean containsComma(); boolean containsSlash(); boolean containsDigit(); boolean containsHyphen(); boolean containsLetters();  }