MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / skip_ws

Method skip_ws

std/json/src/main/tokenizer.rs:38–45  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

36 }
37
38 fn skip_ws(&mut self) {
39 while self.pos < self.src.len() {
40 match self.src[self.pos] {
41 b' ' | b'\t' | b'\n' | b'\r' => self.pos += 1,
42 _ => break,
43 }
44 }
45 }
46
47 pub fn next_token(&mut self) -> Result<Token, JsonError> {
48 self.skip_ws();

Callers 1

next_tokenMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected