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

Method toInt

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

Converts the specified string into an integer value. @param string string to be converted @return resulting integer value, or Integer#MIN_VALUE if the input is invalid

(final String string)

Source from the content-addressed store, hash-verified

59 * @return resulting integer value, or {@link Integer#MIN_VALUE} if the input is invalid
60 */
61 public static int toInt(final String string) {
62 return Token.toInt(Token.token(string));
63 }
64
65 /**
66 * Converts the specified string to a boolean value.

Callers 15

BaseXMethod · 0.95
QueryDateTimeMethod · 0.95
itemMethod · 0.95
dateMethod · 0.95
timeMethod · 0.95
zoneMethod · 0.95
DateFormatMethod · 0.95
getNumMethod · 0.95
jumpMethod · 0.95
newTabFileMethod · 0.95
numberMethod · 0.95
checkRequestMethod · 0.95

Calls 2

toIntMethod · 0.95
tokenMethod · 0.95

Tested by

no test coverage detected