NameChecker { public boolean isNCNameChar(final int codePoint) { return '0' <= codePoint && codePoint <= '9' || codePoint == '_' || codePoint == '.' || this.isNCNameStartChar(codePoint) || codePoint == 0xb7 || 0x300 <= codePoint && codePoint <= 0x36F || 0x203F <= codePoint && codePoint <= 0x2040; }  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 testNCNameChar() { Assert.assertEquals("[--.] | [0-9] | [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.isNCNameChar(codePoint); } })); }