Home
last modified time | relevance | path

Searched refs:one_of (Results 1 - 12 of 12) sorted by relevance

/third_party/rust/crates/nom/benchmarks/benches/
H A Darithmetic.rs10 character::complete::{char, digit1, one_of, space0},
41 pair(one_of("*/"), factor), in term()
56 pair(one_of("+-"), term), in expr()
/third_party/rust/crates/nom/tests/
H A Descaped.rs3 use nom::character::complete::one_of;
7 escaped(digit1, '\\', one_of("\"n\\"))(s) in esc()
/third_party/rust/crates/nom/src/character/
H A Dtests.rs8 one_of("ab")(i) in one_of_test()
18 one_of("+\u{FF0B}")(i) in one_of_test()
H A Dstreaming.rs85 /// # use nom::character::streaming::one_of;
86 /// assert_eq!(one_of::<_, _, (_, ErrorKind)>("abc")("b"), Ok(("", 'b')));
87 /// assert_eq!(one_of::<_, _, (_, ErrorKind)>("a")("bc"), Err(Err::Error(("bc", ErrorKind::OneOf))));
88 /// assert_eq!(one_of::<_, _, (_, ErrorKind)>("a")(""), Err(Err::Incomplete(Needed::new(1))));
90 pub fn one_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in one_of() functions
H A Dcomplete.rs84 /// # use nom::character::complete::one_of;
85 /// assert_eq!(one_of::<_, _, (&str, ErrorKind)>("abc")("b"), Ok(("", 'b')));
86 /// assert_eq!(one_of::<_, _, (&str, ErrorKind)>("a")("bc"), Err(Err::Error(("bc", ErrorKind::OneOf))));
87 /// assert_eq!(one_of::<_, _, (&str, ErrorKind)>("a")(""), Err(Err::Error(("", ErrorKind::OneOf))));
89 pub fn one_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in one_of() functions
/third_party/gn/src/base/strings/
H A Dstring_split.cc42 std::string_view one_of, in FindFirstOf()
44 return piece.find_first_of(one_of, pos); in FindFirstOf()
47 std::u16string_view one_of, in FindFirstOf()
49 return piece.find_first_of(one_of, pos); in FindFirstOf()
41 FindFirstOf(std::string_view piece, std::string_view one_of, size_t pos) FindFirstOf() argument
46 FindFirstOf(std::u16string_view piece, std::u16string_view one_of, size_t pos) FindFirstOf() argument
/third_party/rust/crates/nom/src/bytes/
H A Dtests.rs72 use crate::character::streaming::one_of; in escaping()
75 escaped(alpha, '\\', one_of("\"n\\"))(i) in escaping()
99 escaped(digit, '\\', one_of("\"n\\"))(i) in escaping()
107 use crate::character::streaming::one_of; in escaping_str()
110 escaped(alpha, '\\', one_of("\"n\\"))(i) in escaping_str()
131 escaped(digit, '\\', one_of("\"n\\"))(i) in escaping_str()
136 escaped(alpha, '\u{241b}', one_of("\"n"))(i) in escaping_str()
H A Dcomplete.rs499 /// use nom::character::complete::one_of;
502 /// escaped(digit1, '\\', one_of(r#""n\"#))(s)
727 use crate::character::complete::{alpha0, one_of}; in escaped_string()
728 escaped(alpha0, '\\', one_of("n"))(input) in escaped_string()
747 escaped(opt(none_of(r#"\""#)), '\\', one_of(r#"\"rnt"#)), in unquote()
/third_party/rust/crates/rust-cexpr/src/
H A Dliteral.rs45 use nom::character::complete::{char, one_of};
186 map(one_of(r#"'"?\"#), CChar::Char), in escaped_char()
187 map(one_of("abfnrtv"), escape2char), in escaped_char()
/third_party/rust/crates/nom/examples/
H A Djson.rs6 character::complete::{alphanumeric1 as alphanumeric, char, one_of},
54 escaped(alphanumeric, '\\', one_of("\"n\\"))(i) in parse_str()
H A Ds_expression.rs10 character::complete::{alpha1, char, digit1, multispace0, multispace1, one_of},
69 // one_of matches one of the characters we give it in parse_builtin_op()
70 let (i, t) = one_of("+-*/=")(i)?; in parse_builtin_op()
H A Djson_iterator.rs6 character::complete::{alphanumeric1 as alphanumeric, char, one_of},
225 escaped(alphanumeric, '\\', one_of("\"n\\"))(i) in parse_str()

Completed in 10 milliseconds