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

Method startsWith

basex-core/src/main/java/org/basex/util/Strings.java:281–283  ·  view source on GitHub ↗

Checks if a string starts with the specified character. @param string string @param ch character to be found @return result of check

(final String string, final char ch)

Source from the content-addressed store, hash-verified

279 * @return result of check
280 */
281 public static boolean startsWith(final String string, final char ch) {
282 return string.indexOf(ch) == 0;
283 }
284
285 /**
286 * Checks if a string ends with the specified character.

Callers 15

resolveMethod · 0.95
listMethod · 0.95
getMethod · 0.95
parseMethod · 0.95
queryMethod · 0.95
IOFileClass · 0.95
IOFileMethod · 0.95
urlMethod · 0.95
isHiddenMethod · 0.95
normalizeMethod · 0.95
QueryInputMethod · 0.95
qnameMethod · 0.95

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected