MCPcopy Create free account
hub / github.com/BaseXdb/basex / valid

Method valid

basex-core/src/main/java/org/basex/util/XMLToken.java:132–135  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 12

addMethod · 0.95
currentAsStringMethod · 0.95
addMethod · 0.95
readMethod · 0.95
initMethod · 0.95
entityMethod · 0.95
itemMethod · 0.95
toCodepointMethod · 0.95
filterContentMethod · 0.95
currentAsStringMethod · 0.95
checkMethod · 0.95
decodeUriMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected