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

Method ws

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

Checks if the specified token has only whitespace. @param token token @return true if all characters are whitespace

(final byte[] token)

Source from the content-addressed store, hash-verified

1085 * @return true if all characters are whitespace
1086 */
1087 public static boolean ws(final byte[] token) {
1088 for(final byte b : token) {
1089 if(!ws(b)) return false;
1090 }
1091 return true;
1092 }
1093
1094 /**
1095 * Replaces the specified character and returns the result token.

Callers 15

testMethod · 0.95
deepEqualMethod · 0.95
toDoubleMethod · 0.95
toLongMethod · 0.95
toIntMethod · 0.95
trimMethod · 0.95
normalizeMethod · 0.95
commandMethod · 0.45
nameMethod · 0.45
keyMethod · 0.45
numberMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected