MCPcopy Create free account
hub / github.com/denoland/rust-urlpattern / get_next_codepoint

Method get_next_codepoint

src/tokenizer.rs:56–60  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

54 // Ref: https://wicg.github.io/urlpattern/#get-the-next-code-point
55 #[inline]
56 fn get_next_codepoint(&mut self) {
57 let next_char = self.input[self.next_index..].chars().next().unwrap();
58 self.code_point = Some(next_char);
59 self.next_index += next_char.len_utf8();
60 }
61
62 // Ref: https://wicg.github.io/urlpattern/#add-a-token-with-default-position-and-length
63 #[inline]

Callers 2

tokenizeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected