Home
last modified time | relevance | path

Searched refs:IResult (Results 1 - 25 of 53) sorted by relevance

123

/third_party/rust/crates/nom/src/bytes/
H A Dtests.rs7 use crate::internal::{Err, IResult, Needed};
21 fn a_or_b(i: &[u8]) -> IResult<&[u8], &[u8]> { in is_a()
45 fn a_or_b(i: &[u8]) -> IResult<&[u8], &[u8]> { in is_not()
74 fn esc(i: &[u8]) -> IResult<&[u8], &[u8]> { in escaping()
98 fn esc2(i: &[u8]) -> IResult<&[u8], &[u8]> { in escaping()
109 fn esc(i: &str) -> IResult<&str, &str> { in escaping_str()
130 fn esc2(i: &str) -> IResult<&str, &str> { in escaping_str()
135 fn esc3(i: &str) -> IResult<&str, &str> { in escaping_str()
149 fn esc(i: &[u8]) -> IResult<&[u8], String> { in escape_transform()
194 fn esc2(i: &[u8]) -> IResult< in escape_transform()
[all...]
H A Dcomplete.rs5 use crate::internal::{Err, IResult, Parser};
21 /// # use nom::{Err, error::{Error, ErrorKind}, Needed, IResult};
24 /// fn parser(s: &str) -> IResult<&str, &str> {
34 ) -> impl Fn(Input) -> IResult<Input, Input, Error> in tag()
42 let res: IResult<_, _, Error> = match i.compare(t) { in tag()
61 /// # use nom::{Err, error::{Error, ErrorKind}, Needed, IResult};
64 /// fn parser(s: &str) -> IResult<&str, &str> {
76 ) -> impl Fn(Input) -> IResult<Input, Input, Error> in tag_no_case()
85 let res: IResult<_, _, Error> = match (i).compare_no_case(t) { in tag_no_case()
105 /// # use nom::{Err, error::{Error, ErrorKind}, Needed, IResult};
[all...]
H A Dstreaming.rs5 use crate::internal::{Err, IResult, Needed, Parser};
19 /// # use nom::{Err, error::{Error, ErrorKind}, Needed, IResult};
22 /// fn parser(s: &str) -> IResult<&str, &str> {
33 ) -> impl Fn(Input) -> IResult<Input, Input, Error> in tag()
42 let res: IResult<_, _, Error> = match i.compare(t) { in tag()
60 /// # use nom::{Err, error::{Error, ErrorKind}, Needed, IResult};
63 /// fn parser(s: &str) -> IResult<&str, &str> {
75 ) -> impl Fn(Input) -> IResult<Input, Input, Error> in tag_no_case()
84 let res: IResult<_, _, Error> = match (i).compare_no_case(t) { in tag_no_case()
105 /// # use nom::{Err, error::ErrorKind, Needed, IResult};
[all...]
/third_party/rust/crates/nom/src/
H A Dstr.rs8 Err, IResult,
15 fn test(input: &str) -> IResult<&str, &str> { in tagtr_succeed()
45 let res: IResult<_, _, error::Error<_>> = tag(TAG)(INPUT); in tagtr_incomplete()
63 let res: IResult<_, _, error::Error<_>> = tag(TAG)(INPUT); in tagtr_error()
81 let res: IResult<_, _, error::Error<_>> = take(9_usize)(INPUT); in take_s_succeed()
111 let res: IResult<_, _, (_, ErrorKind)> = take_until(FIND)(INPUT); in take_until_succeed()
142 let res: IResult<_, _, (_, ErrorKind)> = take(13_usize)(INPUT); in take_s_incomplete()
163 fn f(i: &str) -> IResult<&str, &str> { in take_while()
181 fn f(i: &str) -> IResult<&str, &str> { in take_while1()
206 fn test(input: &str) -> IResult< in take_till_s_succeed()
[all...]
/third_party/rust/crates/nom/tests/
H A Dissues.rs5 use nom::{error::ErrorKind, Err, IResult, Needed};
13 pub fn take_char(input: &[u8]) -> IResult<&[u8], char> { in take_char()
28 IResult,
32 fn parse_ints(input: &[u8]) -> IResult<&[u8], Vec<i32>> { in parse_ints()
36 fn spaces_or_int(input: &[u8]) -> IResult<&[u8], i32> { in spaces_or_int()
69 let _: IResult<&[u8], &[u8], (&[u8], ErrorKind)> = length_data(be_u16)(b"012346"); in usize_length_bytes_issue()
76 fn nothing(i: &[u8]) -> IResult<&[u8], &[u8]> { in take_till_issue()
87 fn twolines(i: &str) -> IResult<&str, (&str, &str)> { in issue_655()
103 fn issue_717(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in issue_717()
114 use nom::{error::Error, number::streaming::be_f64, Err, IResult};
[all...]
H A Doverflow.rs10 use nom::{Err, IResult, Needed};
15 fn parser02(i: &[u8]) -> IResult<&[u8], (&[u8], &[u8])> { in parser02()
30 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in overflow_incomplete_length_bytes()
44 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in overflow_incomplete_many0()
60 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in overflow_incomplete_many1()
76 fn multi(i: &[u8]) -> IResult<&[u8], (Vec<&[u8]>, &[u8])> { in overflow_incomplete_many_till()
92 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in overflow_incomplete_many_m_n()
108 fn counter(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in overflow_incomplete_count()
124 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in overflow_incomplete_length_count()
137 fn multi(i: &[u8]) -> IResult< in overflow_incomplete_length_data()
[all...]
H A Djson.rs12 IResult, Parser,
27 fn boolean(input: &str) -> IResult<&str, bool> { in boolean()
31 fn u16_hex(input: &str) -> IResult<&str, u16> { in u16_hex()
35 fn unicode_escape(input: &str) -> IResult<&str, char> { in unicode_escape()
60 fn character(input: &str) -> IResult<&str, char> { in character()
82 fn string(input: &str) -> IResult<&str, String> { in string()
97 fn array(input: &str) -> IResult<&str, Vec<JsonValue>> { in array()
105 fn object(input: &str) -> IResult<&str, HashMap<String, JsonValue>> { in object()
119 fn json_value(input: &str) -> IResult<&str, JsonValue> { in json_value()
132 fn json(input: &str) -> IResult<
[all...]
H A Dini_str.rs7 IResult,
16 fn not_line_ending(i: &str) -> IResult<&str, &str> { in not_line_ending()
20 fn space_or_line_ending(i: &str) -> IResult<&str, &str> { in space_or_line_ending()
24 fn category(i: &str) -> IResult<&str, &str> { in category()
31 fn key_value(i: &str) -> IResult<&str, (&str, &str)> { in key_value()
42 fn keys_and_values_aggregator(i: &str) -> IResult<&str, Vec<(&str, &str)>> { in keys_and_values_aggregator()
46 fn keys_and_values(input: &str) -> IResult<&str, HashMap<&str, &str>> { in keys_and_values()
53 fn category_and_keys(i: &str) -> IResult<&str, (&str, HashMap<&str, &str>)> { in category_and_keys()
57 fn categories_aggregator(i: &str) -> IResult<&str, Vec<(&str, HashMap<&str, &str>)>> { in categories_aggregator()
61 fn categories(input: &str) -> IResult<
[all...]
H A Dmultiline.rs5 IResult,
8 pub fn end_of_line(input: &str) -> IResult<&str, &str> { in end_of_line()
16 pub fn read_line(input: &str) -> IResult<&str, &str> { in read_line()
20 pub fn read_lines(input: &str) -> IResult<&str, Vec<&str>> { in read_lines()
H A Darithmetic.rs9 IResult,
17 fn parens(i: &str) -> IResult<&str, i64> { in parens()
25 fn factor(i: &str) -> IResult<&str, i64> { in factor()
35 fn term(i: &str) -> IResult<&str, i64> { in term()
51 fn expr(i: &str) -> IResult<&str, i64> { in expr()
/third_party/rust/crates/nom/benchmarks/benches/
H A Dini_str.rs12 IResult,
21 fn space_or_line_ending(i: &str) -> IResult<&str, &str> { in space_or_line_ending()
25 fn category(i: &str) -> IResult<&str, &str> { in category()
32 fn key_value(i: &str) -> IResult<&str, (&str, &str)> { in key_value()
42 fn keys_and_values_aggregator(i: &str) -> IResult<&str, Vec<(&str, &str)>> { in keys_and_values_aggregator()
46 fn keys_and_values(input: &str) -> IResult<&str, HashMap<&str, &str>> { in keys_and_values()
53 fn category_and_keys(i: &str) -> IResult<&str, (&str, HashMap<&str, &str>)> { in category_and_keys()
57 fn categories_aggregator(i: &str) -> IResult<&str, Vec<(&str, HashMap<&str, &str>)>> { in categories_aggregator()
61 fn categories(input: &str) -> IResult<&str, HashMap<&str, HashMap<&str, &str>>> { in categories()
H A Djson.rs17 IResult, Parser,
32 fn boolean(input: &str) -> IResult<&str, bool> { in boolean()
36 fn u16_hex(input: &str) -> IResult<&str, u16> { in u16_hex()
40 fn unicode_escape(input: &str) -> IResult<&str, char> { in unicode_escape()
65 fn character(input: &str) -> IResult<&str, char> { in character()
87 fn string(input: &str) -> IResult<&str, String> { in string()
102 fn array(input: &str) -> IResult<&str, Vec<JsonValue>> { in array()
110 fn object(input: &str) -> IResult<&str, HashMap<String, JsonValue>> { in object()
124 fn json_value(input: &str) -> IResult<&str, JsonValue> { in json_value()
137 fn json(input: &str) -> IResult<
[all...]
/third_party/rust/crates/nom/src/number/
H A Dstreaming.rs30 pub fn be_u8<I, E: ParseError<I>>(input: I) -> IResult<I, u8, E> in be_u8()
60 pub fn be_u16<I, E: ParseError<I>>(input: I) -> IResult<I, u16, E> in be_u16()
93 pub fn be_u24<I, E: ParseError<I>>(input: I) -> IResult<I, u32, E> in be_u24()
126 pub fn be_u32<I, E: ParseError<I>>(input: I) -> IResult<I, u32, E> in be_u32()
159 pub fn be_u64<I, E: ParseError<I>>(input: I) -> IResult<I, u64, E> in be_u64()
191 pub fn be_u128<I, E: ParseError<I>>(input: I) -> IResult<I, u128, E> in be_u128()
221 pub fn be_i8<I, E: ParseError<I>>(input: I) -> IResult<I, i8, E> in be_i8()
241 pub fn be_i16<I, E: ParseError<I>>(input: I) -> IResult<I, i16, E> in be_i16()
261 pub fn be_i24<I, E: ParseError<I>>(input: I) -> IResult<I, i32, E> in be_i24()
290 pub fn be_i32<I, E: ParseError<I>>(input: I) -> IResult<
[all...]
H A Dcomplete.rs32 pub fn be_u8<I, E: ParseError<I>>(input: I) -> IResult<I, u8, E> in be_u8()
62 pub fn be_u16<I, E: ParseError<I>>(input: I) -> IResult<I, u16, E> in be_u16()
95 pub fn be_u24<I, E: ParseError<I>>(input: I) -> IResult<I, u32, E> in be_u24()
128 pub fn be_u32<I, E: ParseError<I>>(input: I) -> IResult<I, u32, E> in be_u32()
161 pub fn be_u64<I, E: ParseError<I>>(input: I) -> IResult<I, u64, E> in be_u64()
194 pub fn be_u128<I, E: ParseError<I>>(input: I) -> IResult<I, u128, E> in be_u128()
227 pub fn be_i8<I, E: ParseError<I>>(input: I) -> IResult<I, i8, E> in be_i8()
250 pub fn be_i16<I, E: ParseError<I>>(input: I) -> IResult<I, i16, E> in be_i16()
273 pub fn be_i24<I, E: ParseError<I>>(input: I) -> IResult<I, i32, E> in be_i24()
305 pub fn be_i32<I, E: ParseError<I>>(input: I) -> IResult<
[all...]
/third_party/rust/crates/nom/src/combinator/
H A 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()
59 /// use nom::{Err,error::ErrorKind, IResult,Parser};
73 pub fn map<I, O1, O2, E, F, G>(mut parser: F, mut f: G) -> impl FnMut(I) -> IResult<I, O2, E> in map()
87 /// # use nom::{Err,error::ErrorKind, IResult};
107 ) -> impl FnMut(I) -> IResult<I, O2, E> in map_res()
125 /// # use nom::{Err,error::ErrorKind, IResult};
145 ) -> impl FnMut(I) -> IResult<I, O2, E> in map_opt()
163 /// # use nom::{Err,error::ErrorKind, IResult};
179 ) -> impl FnMut(I) -> IResult< in map_parser()
[all...]
/third_party/rust/crates/nom/examples/
H A Ds_expression.rs15 IResult, Parser,
68 fn parse_builtin_op<'a>(i: &'a str) -> IResult<&'a str, BuiltIn, VerboseError<&'a str>> { in parse_builtin_op()
87 fn parse_builtin<'a>(i: &'a str) -> IResult<&'a str, BuiltIn, VerboseError<&'a str>> { in parse_builtin()
99 fn parse_bool<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_bool()
112 fn parse_keyword<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_keyword()
121 fn parse_num<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_num()
134 fn parse_atom<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_atom()
144 fn parse_constant<'a>(i: &'a str) -> IResult<&'a str, Expr, VerboseError<&'a str>> { in parse_constant()
155 fn s_exp<'a, O1, F>(inner: F) -> impl FnMut(&'a str) -> IResult<&'a str, O1, VerboseError<&'a str>> in s_exp()
175 fn parse_application<'a>(i: &'a str) -> IResult<
[all...]
/third_party/rust/crates/nom/src/multi/
H A Dtests.rs6 internal::{Err, IResult, Needed},
23 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test()
26 fn multi_empty(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test()
29 fn empty_sep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test()
32 fn multi_longsep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test()
72 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list1_test()
75 fn multi_longsep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list1_test()
107 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in many0_test()
110 fn multi_empty(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in many0_test()
135 fn multi(i: &[u8]) -> IResult< in many1_test()
[all...]
/third_party/rust/crates/nom/src/character/
H A Dtests.rs3 use crate::internal::{Err, IResult};
7 fn f(i: &[u8]) -> IResult<&[u8], char> { in one_of_test()
17 fn utf8(i: &str) -> IResult<&str, char> { in one_of_test()
27 fn f(i: &[u8]) -> IResult<&[u8], char> { in none_of_test()
40 fn f(i: &[u8]) -> IResult<&[u8], char> { in char_byteslice()
53 fn f(i: &str) -> IResult<&str, char> { in char_str()
H A Dstreaming.rs9 use crate::internal::{Err, IResult, Needed};
22 /// # use nom::{Err, error::{ErrorKind, Error}, Needed, IResult};
24 /// fn parser(i: &str) -> IResult<&str, char> {
31 pub fn char<I, Error: ParseError<I>>(c: char) -> impl Fn(I) -> IResult<I, char, Error> in char()
52 /// # use nom::{Err, error::{ErrorKind, Error}, Needed, IResult};
54 /// fn parser(i: &str) -> IResult<&str, char> {
61 pub fn satisfy<F, I, Error: ParseError<I>>(cond: F) -> impl Fn(I) -> IResult<I, char, Error> in satisfy()
90 pub fn one_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in one_of()
115 pub fn none_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in none_of()
134 /// # use nom::{Err, error::ErrorKind, IResult, Neede
[all...]
H A Dcomplete.rs9 use crate::internal::{Err, IResult};
22 /// # use nom::{Err, error::{ErrorKind, Error}, IResult};
24 /// fn parser(i: &str) -> IResult<&str, char> {
32 pub fn char<I, Error: ParseError<I>>(c: char) -> impl Fn(I) -> IResult<I, char, Error> in char()
52 /// # use nom::{Err, error::{ErrorKind, Error}, Needed, IResult};
54 /// fn parser(i: &str) -> IResult<&str, char> {
61 pub fn satisfy<F, I, Error: ParseError<I>>(cond: F) -> impl Fn(I) -> IResult<I, char, Error> in satisfy()
89 pub fn one_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in one_of()
113 pub fn none_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in none_of()
131 /// # use nom::{Err, error::{Error, ErrorKind}, IResult};
[all...]
/third_party/rust/crates/rust-cexpr/src/
H A Dliteral.rs93 ) -> impl Fn(I) -> nom::IResult<I, O> in full()
96 F: Fn(I) -> nom::IResult<I, O>, in full()
119 fn parser(i: &[u8]) -> crate::nom::IResult<&[u8], u8> { in parser()
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<
[all...]
/third_party/rust/crates/nom/src/bits/
H A Dstreaming.rs5 use crate::internal::{Err, IResult, Needed};
12 ) -> impl Fn((I, usize)) -> IResult<(I, usize), O, E> in take()
62 ) -> impl Fn((I, usize)) -> IResult<(I, usize), O, E> in tag()
87 /// # use nom::IResult;
90 /// fn parse(input: (&[u8], usize)) -> IResult<(&[u8], usize), bool> {
97 pub fn bool<I, E: ParseError<(I, usize)>>(input: (I, usize)) -> IResult<(I, usize), bool, E> in bool()
116 let result: crate::IResult<(&[u8], usize), usize> = take(count)((input, offset)); in test_take_0()
128 let result: crate::IResult<(&[u8], usize), usize> = in test_tag_ok()
141 let result: crate::IResult<(&[u8], usize), usize> = in test_tag_err()
157 let result: crate::IResult<( in test_bool_0()
[all...]
H A Dcomplete.rs5 use crate::internal::{Err, IResult};
14 /// # use nom::IResult;
17 /// fn parser(input: (&[u8], usize), count: usize)-> IResult<(&[u8], usize), u8> {
35 ) -> impl Fn((I, usize)) -> IResult<(I, usize), O, E> in take()
88 ) -> impl Fn((I, usize)) -> IResult<(I, usize), O, E> in tag()
113 /// # use nom::IResult;
116 /// fn parse(input: (&[u8], usize)) -> IResult<(&[u8], usize), bool> {
123 pub fn bool<I, E: ParseError<(I, usize)>>(input: (I, usize)) -> IResult<(I, usize), bool, E> in bool()
142 let result: crate::IResult<(&[u8], usize), usize> = take(count)((input, offset)); in test_take_0()
151 let result: crate::IResult<( in test_take_eof()
[all...]
/third_party/rust/crates/nom/src/sequence/
H A Dmod.rs7 use crate::internal::{IResult, Parser};
32 ) -> impl FnMut(I) -> IResult<I, (O1, O2), E> in pair()
66 ) -> impl FnMut(I) -> IResult<I, O2, E> in preceded()
100 ) -> impl FnMut(I) -> IResult<I, O1, E> in terminated()
137 ) -> impl FnMut(I) -> IResult<I, (O1, O3), E> in separated_pair()
176 ) -> impl FnMut(I) -> IResult<I, O2, E> in delimited()
194 fn parse(&mut self, input: I) -> IResult<I, O, E>; in parse()
200 fn parse(&mut self, input: Input) -> IResult<Input, (Output,), Error> { in parse()
226 fn parse(&mut self, input: Input) -> IResult<Input, ( $($ty),+ ), Error> { in parse()
259 fn parse(&mut self, input: I) -> IResult<
[all...]
/third_party/rust/crates/nom/fuzz/fuzz_targets/
H A Dfuzz_arithmetic.rs15 IResult,
31 fn incr(i: &str) -> IResult<&str, ()> { in incr()
50 fn parens(i: &str) -> IResult<&str, i64> { in parens()
59 fn factor(i: &str) -> IResult<&str, i64> { in factor()
67 fn term(i: &str) -> IResult<&str, i64> { in term()
95 fn expr(i: &str) -> IResult<&str, i64> { in expr()

Completed in 212 milliseconds

123