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

Method isNCName

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

Checks if the specified token is a valid NCName. @param value value to be checked @return result of check

(final byte[] value)

Source from the content-addressed store, hash-verified

186 * @return result of check
187 */
188 public static boolean isNCName(final byte[] value) {
189 final int vl = value.length;
190 return vl != 0 && ncName(value, 0) == vl;
191 }
192
193 /**
194 * Checks if the specified token is a valid name.

Callers 13

errorMethod · 0.95
checkMethod · 0.95
piTestMethod · 0.95
optPredMethod · 0.95
toStringMethod · 0.95
itemMethod · 0.95
itemMethod · 0.95
toStringMethod · 0.95
itemMethod · 0.95
idsMethod · 0.95
checkNameMethod · 0.95
toStringMethod · 0.95

Calls 1

ncNameMethod · 0.95

Tested by 1

toStringMethod · 0.76