NameChecker { public boolean isNameChar(final int codePoint) { return codePoint == ':' || this.isNCNameChar(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 testNameChar() { Assert.assertEquals("[--.] | [0-:] | [A-Z] | '_' | [a-z] | #xb7 | [#xc0-#xd6] | " + "[#xd8-#xf6] | [#xf8-#x37d] | " + "[#x37f-#x1fff] | [#x200c-#x200d] | [#x203f-#x2040] | " + "[#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.isNameChar(codePoint); } })); }