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

Method skipWs

basex-core/src/main/java/org/basex/query/QueryParser.java:4650–4662  ·  view source on GitHub ↗

Consumes all whitespace characters from the remaining query. @return true if whitespace was found @throws QueryException query exception

()

Source from the content-addressed store, hash-verified

4648 * @throws QueryException query exception
4649 */
4650 private boolean skipWs() throws QueryException {
4651 final int i = pos;
4652 while(more()) {
4653 final int cp = current();
4654 if(cp == '(' && next() == ':') {
4655 comment();
4656 } else {
4657 if(cp == 0 || cp > ' ') return i != pos;
4658 ++pos;
4659 }
4660 }
4661 return i != pos;
4662 }
4663
4664 /**
4665 * Consumes a comment.

Callers 15

parseLibraryMethod · 0.95
prolog1Method · 0.95
prolog2Method · 0.95
optionDeclMethod · 0.95
decimalFormatDeclMethod · 0.95
namedRecordTypeDeclMethod · 0.95
paramListMethod · 0.95
flworMethod · 0.95
letStructBindingMethod · 0.95
windowClauseMethod · 0.95
windowCondMethod · 0.95
typeswitchMethod · 0.95

Calls 4

commentMethod · 0.95
moreMethod · 0.65
nextMethod · 0.65
currentMethod · 0.45

Tested by

no test coverage detected