Lines Matching defs:index
265 let res: IResult<_, _, Error> = if let Ok(index) = input.slice_index(idx) {
266 Ok(input.take_split(index))
275 let res: IResult<_, _, Error> = if let Ok(index) = input.slice_index(n) {
276 Ok(input.take_split(index))
294 Ok(index) => Ok(input.take_split(index)),
413 Ok(index) => Ok(i.take_split(index)),
446 Some(index) => Ok(i.take_split(index)),
483 Some(index) => Ok(i.take_split(index)),
542 let index = input.offset(&i2);
543 return Ok(input.take_split(index));
549 // unwrap() should be safe here since index < $i.input_len()
570 let index = input.offset(&i);
571 if index == 0 {
577 return Ok(input.take_split(index));
647 let mut index = 0;
652 while index < i.input_len() {
654 let remainder = i.slice(index..);
663 index = input.offset(&i2);
667 // unwrap() should be safe here since index < $i.input_len()
669 let next = index + control_char.len_utf8();
684 index = input.offset(&i2);
691 if index == 0 {
703 Ok((input.slice(index..), res))