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

Method normalize

basex-core/src/main/java/org/basex/index/resource/Docs.java:330–332  ·  view source on GitHub ↗

Returns the normalized index path representation for the specified path. The returned path begins with a slash and uses lower case on non-Unix machines. @param path input path (without leading slash) @return canonical path

(final byte[] path)

Source from the content-addressed store, hash-verified

328 * @return canonical path
329 */
330 private static byte[] normalize(final byte[] path) {
331 return concat(cpToken('/'), Prop.CASE ? path : lc(path));
332 }
333
334 @Override
335 public String toString() {

Callers 5

pathsMethod · 0.95
insertMethod · 0.95
renameMethod · 0.95
docsMethod · 0.95
docMethod · 0.95

Calls 3

cpTokenMethod · 0.80
concatMethod · 0.45
lcMethod · 0.45

Tested by

no test coverage detected