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

Method prefix

basex-core/src/main/java/org/basex/util/Token.java:1363–1366  ·  view source on GitHub ↗

Returns the prefix of the specified token. @param name name @return prefix or empty token if no prefix exists

(final byte[] name)

Source from the content-addressed store, hash-verified

1361 * @return prefix or empty token if no prefix exists
1362 */
1363 public static byte[] prefix(final byte[] name) {
1364 final int i = indexOf(name, ':');
1365 return i == -1 ? EMPTY : substring(name, 0, i);
1366 }
1367
1368 /**
1369 * Returns the local name of the specified name.

Callers 9

itemMethod · 0.95
parseQNameMethod · 0.95
getPrefixMethod · 0.95
getPrefixMethod · 0.95
checkVariableMethod · 0.45
nodeMethod · 0.45
printCTMethod · 0.45
adjustNamespacesMethod · 0.45
wildcardsMethod · 0.45

Calls 2

indexOfMethod · 0.95
substringMethod · 0.95

Tested by

no test coverage detected