Home
last modified time | relevance | path

Searched refs:IResult (Results 1 – 25 of 45) sorted by relevance

12

/external/rust/crates/nom/src/sequence/
Dmod.rs6 use crate::internal::IResult;
28 pub fn pair<I, O1, O2, E: ParseError<I>, F, G>(first: F, second: G) -> impl Fn(I) -> IResult<I, (O1… in pair()
30 F: Fn(I) -> IResult<I, O1, E>, in pair()
31 G: Fn(I) -> IResult<I, O2, E>, in pair()
41 pub fn pairc<I, O1, O2, E: ParseError<I>, F, G>(input: I, first: F, second: G) -> IResult<I, (O1, O… in pairc()
43 F: Fn(I) -> IResult<I, O1, E>, in pairc()
44 G: Fn(I) -> IResult<I, O2, E>, in pairc()
68 pub fn preceded<I, O1, O2, E: ParseError<I>, F, G>(first: F, second: G) -> impl Fn(I) -> IResult<I,… in preceded()
70 F: Fn(I) -> IResult<I, O1, E>, in preceded()
71 G: Fn(I) -> IResult<I, O2, E>, in preceded()
[all …]
/external/rust/crates/nom/src/combinator/
Dmod.rs31 pub fn rest<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in rest()
48 pub fn rest_len<T, E: ParseError<T>>(input: T) -> IResult<T, usize, E> in rest_len()
75 pub fn map<I, O1, O2, E: ParseError<I>, F, G>(first: F, second: G) -> impl Fn(I) -> IResult<I, O2, … in map()
77 F: Fn(I) -> IResult<I, O1, E>, in map()
87 pub fn mapc<I, O1, O2, E: ParseError<I>, F, G>(input: I, first: F, second: G) -> IResult<I, O2, E> in mapc()
89 F: Fn(I) -> IResult<I, O1, E>, in mapc()
116 … Clone, O1, O2, E: ParseError<I>, E2, F, G>(first: F, second: G) -> impl Fn(I) -> IResult<I, O2, E> in map_res()
118 F: Fn(I) -> IResult<I, O1, E>, in map_res()
132 …c<I: Clone, O1, O2, E: ParseError<I>, E2, F, G>(input: I, first: F, second: G) -> IResult<I, O2, E> in map_resc()
134 F: Fn(I) -> IResult<I, O1, E>, in map_resc()
[all …]
Dmacros.rs108 $vis fn $name( i: $i ) -> $crate::IResult<$i, $o, ($i, $crate::error::ErrorKind)> {
113 $vis fn $name( i: $i ) -> $crate::IResult<$i, $o, $e> {
118 $vis fn $name( i: $i ) -> $crate::IResult<$i, $o, ($i, $crate::error::ErrorKind)> {
123 $vis fn $name( i: &[u8] ) -> $crate::IResult<&[u8], $o, (&[u8], $crate::error::ErrorKind)> {
128 … $vis fn $name( i: &[u8] ) -> $crate::IResult<&[u8], &[u8], (&[u8], $crate::error::ErrorKind)> {
165 … $vis fn $func_name(input: &[u8], $( $arg : $typ ),*) -> $crate::IResult<&[u8], $return_type> {
173 $crate::IResult<&'this_is_probably_unique_i_hope_please [u8], $return_type>
180 …$vis fn $func_name(input: $input_type, $( $arg : $typ ),*) -> $crate::IResult<$input_type, $return…
188 -> $crate::IResult<$input_type, $return_type>
220 $vis fn $name( i: $i ) -> $crate::IResult<$i,$o, ($i, $crate::error::ErrorKind)> {
[all …]
/external/rust/crates/nom/src/multi/
Dmod.rs6 use crate::internal::{Err, IResult, Needed};
38 pub fn many0<I, O, E, F>(f: F) -> impl Fn(I) -> IResult<I, Vec<O>, E> in many0()
41 F: Fn(I) -> IResult<I, O, E>, in many0()
66 pub fn many0c<I, O, E, F>(input: I, f: F) -> IResult<I, Vec<O>, E> in many0c()
69 F: Fn(I) -> IResult<I, O, E>, in many0c()
102 pub fn many1<I, O, E, F>(f: F) -> impl Fn(I) -> IResult<I, Vec<O>, E> in many1()
105 F: Fn(I) -> IResult<I, O, E>, in many1()
140 pub fn many1c<I, O, E, F>(input: I, f: F) -> IResult<I, Vec<O>, E> in many1c()
143 F: Fn(I) -> IResult<I, O, E>, in many1c()
168 pub fn many_till<I, O, P, E, F, G>(f: F, g: G) -> impl Fn(I) -> IResult<I, (Vec<O>, P), E> in many_till()
[all …]
/external/rust/crates/nom/src/bytes/
Dcomplete.rs5 use crate::internal::{Err, IResult};
30 pub fn tag<'a, T: 'a, Input: 'a, Error: ParseError<Input>>(tag: T) -> impl Fn(Input) -> IResult<Inp… in tag()
38 let res: IResult<_, _, Error> = match i.compare(t) { in tag()
71 pub fn tag_no_case<T, Input, Error: ParseError<Input>>(tag: T) -> impl Fn(Input) -> IResult<Input, … in tag_no_case()
80 let res: IResult<_, _, Error> = match (i).compare_no_case(t) { in tag_no_case()
113 pub fn is_not<T, Input, Error: ParseError<Input>>(arr: T) -> impl Fn(Input) -> IResult<Input, Input… in is_not()
147 pub fn is_a<T, Input, Error: ParseError<Input>>(arr: T) -> impl Fn(Input) -> IResult<Input, Input, … in is_a()
179 pub fn take_while<F, Input, Error: ParseError<Input>>(cond: F) -> impl Fn(Input) -> IResult<Input, … in take_while()
209 pub fn take_while1<F, Input, Error: ParseError<Input>>(cond: F) -> impl Fn(Input) -> IResult<Input,… in take_while1()
245 …or: ParseError<Input>>(m: usize, n: usize, cond: F) -> impl Fn(Input) -> IResult<Input, Input, Err… in take_while_m_n()
[all …]
Dstreaming.rs5 use crate::internal::{Err, IResult, Needed};
28 pub fn tag<'a, T: 'a, Input: 'a, Error: ParseError<Input>>(tag: T) -> impl Fn(Input) -> IResult<Inp… in tag()
37 let res: IResult<_, _, Error> = match i.compare(t) { in tag()
69 pub fn tag_no_case<T, Input, Error: ParseError<Input>>(tag: T) -> impl Fn(Input) -> IResult<Input, … in tag_no_case()
78 let res: IResult<_, _, Error> = match (i).compare_no_case(t) { in tag_no_case()
112 pub fn is_not<T, Input, Error: ParseError<Input>>(arr: T) -> impl Fn(Input) -> IResult<Input, Input… in is_not()
147 pub fn is_a<T, Input, Error: ParseError<Input>>(arr: T) -> impl Fn(Input) -> IResult<Input, Input, … in is_a()
181 pub fn take_while<F, Input, Error: ParseError<Input>>(cond: F) -> impl Fn(Input) -> IResult<Input, … in take_while()
214 pub fn take_while1<F, Input, Error: ParseError<Input>>(cond: F) -> impl Fn(Input) -> IResult<Input,… in take_while1()
251 …or: ParseError<Input>>(m: usize, n: usize, cond: F) -> impl Fn(Input) -> IResult<Input, Input, Err… in take_while_m_n()
[all …]
/external/rust/crates/nom/src/number/
Dstreaming.rs27 pub fn be_u8<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u8, E> { in be_u8()
52 pub fn be_u16<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u16, E> { in be_u16()
78 pub fn be_u24<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u32, E> { in be_u24()
104 pub fn be_u32<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u32, E> { in be_u32()
130 pub fn be_u64<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u64, E> { in be_u64()
157 pub fn be_u128<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u128, E> { in be_u128()
195 pub fn be_i8<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i8, E> { in be_i8()
213 pub fn be_i16<'a, E: ParseError<&'a [u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i16, E> { in be_i16()
231 pub fn be_i24<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i32, E> { in be_i24()
254 pub fn be_i32<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i32, E> { in be_i32()
[all …]
Dcomplete.rs30 pub fn be_u8<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u8, E> { in be_u8()
54 pub fn be_u16<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u16, E> { in be_u16()
79 pub fn be_u24<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u32, E> { in be_u24()
104 pub fn be_u32<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u32, E> { in be_u32()
129 pub fn be_u64<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u64, E> { in be_u64()
156 pub fn be_u128<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u128, E> { in be_u128()
196 pub fn be_i8<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i8, E> { in be_i8()
216 pub fn be_i16<'a, E: ParseError<&'a [u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i16, E> { in be_i16()
236 pub fn be_i24<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i32, E> { in be_i24()
261 pub fn be_i32<'a, E: ParseError<&'a[u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i32, E> { in be_i32()
[all …]
/external/rust/crates/cexpr/src/
Dliteral.rs93 ) -> impl Fn(I) -> nom::IResult<I, O, (I, E)> in full()
96 F: Fn(I) -> nom::IResult<I, O, (I, E)>, in full()
119 fn parser(i: &[u8]) -> crate::nom::IResult<&[u8], u8> {
131 fn binary(i: &[u8]) -> nom::IResult<&[u8], u8> { in binary()
135 fn octal(i: &[u8]) -> nom::IResult<&[u8], u8> { in octal()
139 fn decimal(i: &[u8]) -> nom::IResult<&[u8], u8> { in decimal()
143 fn hexadecimal(i: &[u8]) -> nom::IResult<&[u8], u8> { in hexadecimal()
182 fn escaped_char(i: &[u8]) -> nom::IResult<&[u8], CChar> { in escaped_char()
204 fn c_width_prefix(i: &[u8]) -> nom::IResult<&[u8], &[u8]> { in c_width_prefix()
208 fn c_char(i: &[u8]) -> nom::IResult<&[u8], CChar> { in c_char()
[all …]
Dlib.rs22 pub use nom::{error::ErrorKind, Err, IResult, Needed};
104 fn to_cexpr_result(self) -> nom::IResult<I, O, Error<I>>; in to_cexpr_result()
106 impl<I, O, E> ToCexprResult<I, O> for nom::IResult<I, O, E> implementation
110 fn to_cexpr_result(self) -> nom::IResult<I, O, Error<I>> { in to_cexpr_result()
123 result: nom::IResult<&'i [I], O, E>, in assert_full_parse()
124 ) -> nom::IResult<&'i [I], O, Error<&'i [I]>> in assert_full_parse()
/external/rust/crates/nom/src/
Dstr.rs3 use crate::{Err, error::ErrorKind, IResult};
9 fn test(input: &str) -> IResult<&str, &str> { in tagtr_succeed()
40 let res: IResult<_,_,(_, ErrorKind)> = tag!(INPUT, TAG); in tagtr_incomplete()
58 let res: IResult<_,_,(_, ErrorKind)> = tag!(INPUT, TAG); in tagtr_error()
76 let res: IResult<_,_,(_, ErrorKind)> = take!(INPUT, 9); in take_s_succeed()
106 let res: IResult<_,_,(_, ErrorKind)> = take_until!(INPUT, FIND); in take_until_succeed()
135 let res: IResult<_,_,(_, ErrorKind)> = take!(INPUT, 13); in take_s_incomplete()
191 fn test(input: &str) -> IResult<&str, &str> { in take_till_s_succeed()
224 fn test(input: &str) -> IResult<&str, &str> { in take_while_succeed_none()
255 fn test(input: &str) -> IResult<&str, &str> { in is_not_succeed()
[all …]
Dregexp.rs30 use $crate::{Err,error::ErrorKind,IResult};
38 let res: IResult<_,_> = Err(Err::Error(error_position!($i, ErrorKind::RegexpMatch)));
55 use $crate::{Err,error::ErrorKind,IResult};
63 let res: IResult<_,_> = Err(Err::Error(error_position!($i, ErrorKind::RegexpMatch)));
79 use $crate::{Err,error::ErrorKind,IResult};
87 let res: IResult<_,_> = Err(Err::Error(error_position!($i, ErrorKind::RegexpMatch)));
104 use $crate::{Err,error::ErrorKind,IResult};
112 let res: IResult<_,_> = Err(Err::Error(error_position!($i, ErrorKind::RegexpMatch)));
128 use $crate::{Err,error::ErrorKind,IResult};
135 let res: IResult<_,_> = Err(Err::Error(error_position!($i, ErrorKind::RegexpFind)));
[all …]
Dtraits.rs3 use crate::internal::{Err, IResult, Needed};
456 fn split_at_position<P, E: ParseError<Self>>(&self, predicate: P) -> IResult<Self, Self, E> in split_at_position()
466 …fn split_at_position1<P, E: ParseError<Self>>(&self, predicate: P, e: ErrorKind) -> IResult<Self, … in split_at_position1()
474 …fn split_at_position_complete<P, E: ParseError<Self>>(&self, predicate: P) -> IResult<Self, Self, … in split_at_position_complete()
484 …tion1_complete<P, E: ParseError<Self>>(&self, predicate: P, e: ErrorKind) -> IResult<Self, Self, E> in split_at_position1_complete()
492 fn split_at_position<P, E: ParseError<Self>>(&self, predicate: P) -> IResult<Self, Self, E> in split_at_position()
502 …fn split_at_position1<P, E: ParseError<Self>>(&self, predicate: P, e: ErrorKind) -> IResult<Self, … in split_at_position1()
513 …fn split_at_position_complete<P, E: ParseError<Self>>(&self, predicate: P) -> IResult<Self, Self, … in split_at_position_complete()
521 …tion1_complete<P, E: ParseError<Self>>(&self, predicate: P, e: ErrorKind) -> IResult<Self, Self, E> in split_at_position1_complete()
537 fn split_at_position<P, E: ParseError<Self>>(&self, predicate: P) -> IResult<Self, Self, E> in split_at_position()
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dhicpp-signed-bitwise-integer-literals.cpp15 int IResult; in examples() local
16 IResult = 10 & 2; //Ok in examples()
17 IResult = 3 << -1; in examples()
21 IResult = Int << 1; in examples()
23 IResult = ~0; //Ok in examples()
/external/rust/crates/nom/src/bits/
Dmod.rs11 use crate::internal::{Err, IResult, Needed};
37 …r<(I, usize)>+ErrorConvert<E2>, E2: ParseError<I>, P>(parser: P) -> impl Fn(I) -> IResult<I, O, E2> in bits()
40 P: Fn((I, usize)) -> IResult<(I, usize), O, E1>, in bits()
54 …Error<(I, usize)>+ErrorConvert<E2>, E2: ParseError<I>, P>(input: I, parser: P) -> IResult<I, O, E2> in bitsc()
57 P: Fn((I, usize)) -> IResult<(I, usize), O, E1>, in bitsc()
87 …E2>, E2: ParseError<(I, usize)>, P>(parser: P) -> impl Fn((I, usize)) -> IResult<(I, usize), O, E2> in bytes()
90 P: Fn(I) -> IResult<I, O, E1>, in bytes()
113 …ert<E2>, E2: ParseError<(I, usize)>, P>(input: (I, usize), parser: P) -> IResult<(I, usize), O, E2> in bytesc()
116 P: Fn(I) -> IResult<I, O, E1>, in bytesc()
/external/rust/crates/nom/tests/
Dcustom_errors.rs7 use nom::IResult;
34 fn test1(input: &str) -> IResult<&str, &str, CustomError> { in test1()
39 fn test2(input: &str) -> IResult<&str, &str, CustomError> { in test2()
44 fn test3(input: &str) -> IResult<&str, &str, CustomError> { in test3()
51 fn test4(input: &str) -> IResult<&str, Vec<&str>, CustomError> { in test4()
Dmultiline.rs4 IResult,
10 pub fn end_of_line(input: &str) -> IResult<&str, &str> { in end_of_line()
18 pub fn read_line(input: &str) -> IResult<&str, &str> { in read_line()
22 pub fn read_lines(input: &str) -> IResult<&str, Vec<&str>> { in read_lines()
Darithmetic.rs5 IResult,
20 fn parens(i: &str) -> IResult<&str, i64> { in parens()
36 fn factor(i: &str) -> IResult<&str, i64> { in factor()
46 fn term(i: &str) -> IResult<&str, i64> { in term()
58 fn expr(i: &str) -> IResult<&str, i64> { in expr()
Dini_str.rs5 IResult,
18 fn not_line_ending(i: &str) -> IResult<&str, &str> { in not_line_ending()
22 fn space_or_line_ending(i: &str) -> IResult<&str, &str> { in space_or_line_ending()
26 fn category(i: &str) -> IResult<&str, &str> { in category()
46 fn keys_and_values(input: &str) -> IResult<&str, HashMap<&str, &str>> { in keys_and_values()
59 fn categories(input: &str) -> IResult<&str, HashMap<&str, HashMap<&str, &str>>> { in categories()
Dissues.rs8 use nom::{character::{is_digit, streaming::space1 as space}, Err, IResult, Needed, error::ErrorKind…
16 pub fn take_char(input: &[u8]) -> IResult<&[u8], char> { in take_char()
71 use nom::{IResult, character::streaming::{digit1 as digit, space1 as space}};
76 fn spaces_or_int(input: &[u8]) -> IResult<&[u8], i32> { in spaces_or_int()
108 let _: IResult<&[u8], &[u8], (&[u8], ErrorKind)> = length_data!(b"012346", be_u16); in usize_length_bytes_issue()
152 fn issue_302(input: &[u8]) -> IResult<&[u8], Option<Vec<u64>>> { in issue_302()
287 pub fn parser<'a, E: ParseError<&'a str>>(i: &'a str) -> IResult<&'a str, usize, E> { in issue_942()
310 let result: IResult<_, _, VerboseError<&str>> = pair(char('a'), char('b'))(input); in issue_1027_convert_error_panic_nonempty()
Descaped.rs1 use nom::{Err, error::ErrorKind, IResult};
6 fn esc(s: &str) -> IResult<&str, &str> { in esc()
11 fn esc_trans(s: &str) -> IResult<&str, String> {
Dcss.rs3 use nom::IResult;
23 fn hex_primary(input: &str) -> IResult<&str, u8> { in hex_primary()
30 fn hex_color(input: &str) -> IResult<&str, Color> { in hex_color()
/external/rust/crates/nom/src/character/
Dcomplete.rs5 use crate::internal::{Err, IResult};
27 pub fn char<I, Error: ParseError<I>>(c: char) -> impl Fn(I) -> IResult<I, char, Error> in char()
56 pub fn one_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in one_of()
83 pub fn none_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in none_of()
114 pub fn crlf<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in crlf()
150 pub fn not_line_ending<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in not_line_ending()
205 pub fn line_ending<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in line_ending()
243 pub fn newline<I, Error: ParseError<I>>(input: I) -> IResult<I, char, Error> in newline()
270 pub fn tab<I, Error: ParseError<I>>(input: I) -> IResult<I, char, Error> in tab()
296 pub fn anychar<T, E: ParseError<T>>(input: T) -> IResult<T, char, E> in anychar()
[all …]
Dstreaming.rs5 use crate::internal::{Err, IResult, Needed};
28 pub fn char<I, Error: ParseError<I>>(c: char) -> impl Fn(I) -> IResult<I, char, Error> in char()
60 pub fn one_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in one_of()
88 pub fn none_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in none_of()
116 pub fn crlf<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in crlf()
148 pub fn not_line_ending<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in not_line_ending()
200 pub fn line_ending<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in line_ending()
235 pub fn newline<I, Error: ParseError<I>>(input: I) -> IResult<I, char, Error> in newline()
258 pub fn tab<I, Error: ParseError<I>>(input: I) -> IResult<I, char, Error> in tab()
280 pub fn anychar<T, E: ParseError<T>>(input: T) -> IResult<T, char, E> in anychar()
[all …]
/external/rust/crates/nom/src/branch/
Dmod.rs8 use crate::internal::{Err, IResult};
15 fn choice(&self, input: I) -> IResult<I, O, E>; in choice()
45 pub fn alt<I: Clone, O, E: ParseError<I>, List: Alt<I, O, E>>(l: List) -> impl Fn(I) -> IResult<I, … in alt()
54 fn permutation(&self, input: I) -> IResult<I, O, E>; in permutation()
83 …lone, O, E: ParseError<I>, List: Permutation<I, O, E>>(l: List) -> impl Fn(I) -> IResult<I, O, E> { in permutation()
106 $($id: Fn(Input) -> IResult<Input, Output, Error>),+
109 fn choice(&self, input: Input) -> IResult<Input, Output, Error> {
168 $($name: Fn(Input) -> IResult<Input, $ty, Error>),+
171 fn permutation(&self, mut input: Input) -> IResult<Input, ( $($ty),+ ), Error> {

12