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

Method uri

basex-core/src/main/java/org/basex/data/NSNode.java:159–166  ·  view source on GitHub ↗

Returns the ID of the namespace URI for the specified prefix. @param prefix prefix reference @return id of the namespace URI, or 0 if none is found

(final int prefix)

Source from the content-addressed store, hash-verified

157 * @return id of the namespace URI, or {@code 0} if none is found
158 */
159 int uri(final int prefix) {
160 final int[] vls = values;
161 final int vl = vls.length;
162 for(int v = 0; v < vl; v += 2) {
163 if(vls[v] == prefix) return vls[v + 1];
164 }
165 return 0;
166 }
167
168 // Updating Namespaces ==========================================================================
169

Callers 4

uriIdMethod · 0.95
printMethod · 0.45
tableMethod · 0.45
infoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected