Checks if the specified character is an XML letter. @param cp codepoint of the character @return result of check
(final int cp)
| 157 | * @return result of check |
| 158 | */ |
| 159 | public static boolean isNCChar(final int cp) { |
| 160 | return isNCStartChar(cp) || |
| 161 | (cp < 0x100 ? digit(cp) || cp == '-' || cp == '.' || cp == 0xB7 : |
| 162 | cp >= 0x300 && cp <= 0x36F || cp == 0x203F || cp == 0x2040); |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * Checks if the specified character is an XML first-letter. |