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

Method skipWhitespace

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

Consume whitespace characters in bulk, leaving the first non-whitespace character unconsumed.

()

Source from the content-addressed store, hash-verified

174 * Consume whitespace characters in bulk, leaving the first non-whitespace character unconsumed.
175 */
176 public void skipWhitespace() {
177 while (fill()) {
178 int start = position + 1;
179 for (int i = start; i < filled; i++) {
180 if (!isWhitespace(buffer[i])) {
181 position = i - 1;
182 return;
183 }
184 }
185 position = filled - 1;
186 }
187 }
188
189 /**
190 * Test for whitespace, checking the JSON whitespace characters (RFC 8259 §2) directly before

Callers

nothing calls this directly

Calls 2

fillMethod · 0.95
isWhitespaceMethod · 0.95

Tested by

no test coverage detected