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

Method consume

basex-core/src/main/java/org/basex/util/TokenParser.java:61–66  ·  view source on GitHub ↗

Tries to consume the specified codepoint. @param cp codepoint to be consumed @return indicates if the codepoint was consumed

(final int cp)

Source from the content-addressed store, hash-verified

59 * @return indicates if the codepoint was consumed
60 */
61 public final boolean consume(final int cp) {
62 final int p = pos;
63 if(p >= size || cp(token, p) != cp) return false;
64 pos += cl(token, p);
65 return true;
66 }
67
68 @Override
69 public String toString() {

Callers 15

presentationMethod · 0.95
IntFormatMethod · 0.95
contextValueDeclMethod · 0.45
namedRecordTypeDeclMethod · 0.45
paramListMethod · 0.45
letStructBindingMethod · 0.45
stringConcatMethod · 0.45
additiveMethod · 0.45
multiplicativeMethod · 0.45
isUnionMethod · 0.45
arrowMethod · 0.45
unaryMethod · 0.45

Calls 2

cpMethod · 0.45
clMethod · 0.45

Tested by

no test coverage detected