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

Method endsWith

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

Checks if the first token starts with the specified character. @param token token @param ch character to be bound @return result of check

(final byte[] token, final int ch)

Source from the content-addressed store, hash-verified

959 * @return result of check
960 */
961 public static boolean endsWith(final byte[] token, final int ch) {
962 return token.length != 0 && token[token.length - 1] == ch;
963 }
964
965 /**
966 * Checks if the first token ends with the second token.

Callers 15

testMethod · 0.95
standardHeadersMethod · 0.45
checkMethod · 0.45
runMethod · 0.45
initMethod · 0.45
errorMethod · 0.45
fileToURLMethod · 0.45
surrogatePairPathMethod · 0.45
createFromMethod · 0.45
DbModuleTestClass · 0.45
countTempFilesMethod · 0.45
BaseXGUIMethod · 0.45

Calls

no outgoing calls

Tested by 6

standardHeadersMethod · 0.36
checkMethod · 0.36
fileToURLMethod · 0.36
surrogatePairPathMethod · 0.36
createFromMethod · 0.36
countTempFilesMethod · 0.36