Checks if the specified character is a valid XML 1.0 character. @param cp codepoint of the character @return result of check
(final int cp)
| 130 | * @return result of check |
| 131 | */ |
| 132 | public static boolean valid(final int cp) { |
| 133 | return cp < 0xD800 ? cp >= 0x20 || cp == 0xA || cp == 0x9 || cp == 0xD : |
| 134 | cp >= 0xE000 && cp <= 0xFFFD || cp >= 0x10000 && cp <= 0x10ffff; |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Checks if the specified character is a name start character, as required |
no outgoing calls
no test coverage detected