NameChecker { public boolean isNameStartChar(final int codePoint) { return codePoint == ':' || this.isNCNameStartChar(codePoint); }  String checkStyleName(final String name); boolean isNameStartChar(final int codePoint); boolean isNameChar(final int codePoint); boolean isNCNameStartChar(final int codePoint); boolean isNCNameChar(final int codePoint);  }
@Test public void testNameStartChar() { Assert.assertEquals( "'-' | ':' | [A-Z] | [a-z] | [#xc0-#xd6] | [#xd8-#xf6] | [#xf8-#x2ff] | " + "[#x370-#x37d] | " + "[#x37f-#x1fff] | [#x200c-#x200d] | [#x2070-#x218f] | [#x2c00-#x2fef] " + "" + "" + "| " + "[#x3001-#xd7ff] | " + "[#xf900-#xfdcf] | [#xfdf0-#xfffd] | [#x10000-#xeffff]", CodePointTester.codePointsAsString(new CodePointTester.CategoryFilter() { @Override public boolean check(final int codePoint) { return NameCheckerTest.this.checker.isNameStartChar(codePoint); } })); }