Lines Matching refs:index
276 let res: IResult<_, _, Error> = if let Ok(index) = input.slice_index(idx) {
277 Ok(input.take_split(index))
286 let res: IResult<_, _, Error> = if let Ok(index) = input.slice_index(n) {
287 Ok(input.take_split(index))
305 Ok(index) => Ok(input.take_split(index)),
421 Ok(index) => Ok(i.take_split(index)),
458 Some(index) => Ok(i.take_split(index)),
499 Some(index) => Ok(i.take_split(index)),
556 let index = input.offset(&i2);
557 return Ok(input.take_split(index));
563 // unwrap() should be safe here since index < $i.input_len()
581 let index = input.offset(&i);
582 return Ok(input.take_split(index));
651 let mut index = 0;
656 while index < i.input_len() {
658 let remainder = i.slice(index..);
667 index = input.offset(&i2);
671 // unwrap() should be safe here since index < $i.input_len()
673 let next = index + control_char.len_utf8();
685 index = input.offset(&i2);