MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / isWhitespace

Method isWhitespace

java/src/org/openqa/selenium/json/Input.java:194–199  ·  view source on GitHub ↗

Test for whitespace, checking the JSON whitespace characters (RFC 8259 §2) directly before consulting Character#isWhitespace, whose table lookups are measurably slower and which is retained only to stay lenient about exotic whitespace between tokens.

(char c)

Source from the content-addressed store, hash-verified

192 * is retained only to stay lenient about exotic whitespace between tokens.
193 */
194 private static boolean isWhitespace(char c) {
195 if (c == ' ' || c == '\n' || c == '\t' || c == '\r') {
196 return true;
197 }
198 return Character.isWhitespace(c);
199 }
200
201 /**
202 * Consume ASCII digits, appending them to the supplied builder in bulk. Stops before the first

Callers 2

skipWhitespaceMethod · 0.95
writeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected