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

Method isNCChar

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

Checks if the specified character is an XML letter. @param cp codepoint of the character @return result of check

(final int cp)

Source from the content-addressed store, hash-verified

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.

Callers 10

qNameMethod · 0.95
ncNameMethod · 0.95
wsConsumeWsMethod · 0.95
addMethod · 0.95
closeElemMethod · 0.95
getColorMethod · 0.95
isCharMethod · 0.95
ncNameMethod · 0.95
encodeMethod · 0.95
decodeMethod · 0.95

Calls 2

isNCStartCharMethod · 0.95
digitMethod · 0.45

Tested by

no test coverage detected