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

Method last

basex-core/src/main/java/org/basex/query/QueryString.java:215–217  ·  view source on GitHub ↗

Returns the last character of the query string. @return last character, or a space if the query string is empty

()

Source from the content-addressed store, hash-verified

213 * @return last character, or a space if the query string is empty
214 */
215 private char last() {
216 return tb.isEmpty() ? ' ' : (char) tb.get(tb.size() - 1);
217 }
218
219 /**
220 * Returns the error flag.

Callers 4

tokenMethod · 0.95
tokensMethod · 0.95
bracedMethod · 0.95
spaceMethod · 0.95

Calls 3

getMethod · 0.65
sizeMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected