Lines Matching defs:bytes
17 pub fn advance(&self, bytes: usize) -> Cursor<'a> {
18 let (_front, rest) = self.rest.split_at(bytes);
53 fn bytes(&self) -> Bytes<'a> {
54 self.rest.bytes()
131 let bytes = input.as_bytes();
133 let upper = bytes.len() - 1;
136 if bytes[i] == b'/' && bytes[i + 1] == b'*' {
139 } else if bytes[i] == b'*' && bytes[i + 1] == b'/' {
183 let first = match input.bytes().next() {
420 let mut bytes = input.bytes().enumerate();
421 while let Some((i, byte)) = bytes.next() {
427 b'\r' => match bytes.next() {
448 let mut bytes = input.bytes().enumerate();
449 while let Some((offset, b)) = bytes.next() {
455 b'\r' => match bytes.next() {
459 b'\\' => match bytes.next() {
461 backslash_x_byte(&mut bytes)?;
467 bytes = input.bytes().enumerate();
479 for (i, byte) in input.bytes().enumerate() {
497 let mut bytes = input.bytes().enumerate();
498 while let Some((i, byte)) = bytes.next() {
504 b'\r' => match bytes.next() {
530 let mut bytes = input.bytes().enumerate();
531 while let Some((i, byte)) = bytes.next() {
537 b'\r' => match bytes.next() {
587 let mut bytes = input.bytes().enumerate();
588 let ok = match bytes.next().map(|(_, b)| b) {
589 Some(b'\\') => match bytes.next().map(|(_, b)| b) {
590 Some(b'x') => backslash_x_byte(&mut bytes).is_ok(),
599 let (offset, _) = bytes.next().ok_or(Reject)?;
697 let mut whitespace = input.bytes().enumerate();
836 for b in input.bytes() {