/third_party/rust/crates/nom/tests/ |
H A D | escaped.rs | 2 use nom::character::complete::digit1; 7 escaped(digit1, '\\', one_of("\"n\\"))(s) in esc() 13 escaped_transform(digit1, '\\', tag("n"))(s) in esc_trans()
|
H A D | custom_errors.rs | 4 use nom::character::streaming::digit1 as digit;
|
H A D | arithmetic.rs | 5 character::complete::{digit1 as digit, space0 as space},
|
H A D | float.rs | 3 use nom::character::streaming::digit1 as digit;
|
H A D | issues.rs | 25 character::streaming::{digit1 as digit, space1 as space},
|
H A D | arithmetic_ast.rs | 9 character::complete::{digit1 as digit, multispace0 as multispace},
|
/third_party/rust/crates/nom/benchmarks/benches/ |
H A D | arithmetic.rs | 10 character::complete::{char, digit1, one_of, space0}, 26 map_res(digit1, |digits| { in factor()
|
/third_party/rust/crates/nom/src/character/ |
H A D | streaming.rs | 375 /// # use nom::character::streaming::digit1; 376 /// assert_eq!(digit1::<_, (_, ErrorKind)>("21c"), Ok(("c", "21"))); 377 /// assert_eq!(digit1::<_, (_, ErrorKind)>("c1"), Err(Err::Error(("c1", ErrorKind::Digit)))); 378 /// assert_eq!(digit1::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1)))); 380 pub fn digit1<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in digit1() functions 775 assert_eq!(digit1(a), Err(Err::Error((a, ErrorKind::Digit)))); in character() 777 digit1::<_, (_, ErrorKind)>(b), in character() 780 assert_eq!(digit1(c), Err(Err::Error((c, ErrorKind::Digit)))); in character() 781 assert_eq!(digit1(d), Err(Err::Error((d, ErrorKind::Digit)))); in character() 841 assert_eq!(digit1( in character_s() [all...] |
H A D | complete.rs | 408 /// # use nom::character::complete::digit1; 410 /// digit1(input) 419 /// You can use `digit1` in combination with [`map_res`] to parse an integer: 424 /// # use nom::character::complete::digit1; 426 /// map_res(digit1, str::parse)(input) 435 pub fn digit1<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in digit1() functions 862 assert_eq!(digit1(a), Err(Err::Error((a, ErrorKind::Digit)))); in character() 863 assert_eq!(digit1::<_, (_, ErrorKind)>(b), Ok((empty, b))); in character() 864 assert_eq!(digit1(c), Err(Err::Error((c, ErrorKind::Digit)))); in character() 865 assert_eq!(digit1( in character() [all...] |
/third_party/rust/crates/nom/examples/ |
H A D | s_expression.rs | 10 character::complete::{alpha1, char, digit1, multispace0, multispace1, one_of}, 123 map_res(digit1, |digit_str: &str| { in parse_num() 126 map(preceded(tag("-"), digit1), |digit_str: &str| { in parse_num()
|
/third_party/rust/crates/nom/fuzz/fuzz_targets/ |
H A D | fuzz_arithmetic.rs | 11 character::complete::{digit1 as digit, space0 as space},
|
/third_party/rust/crates/nom/src/number/ |
H A D | streaming.rs | 5 use crate::character::streaming::{char, digit1, sign}; 1368 map(tuple((digit1, opt(pair(char('.'), opt(digit1))))), |_| ()), in recognize_float() 1369 map(tuple((char('.'), digit1)), |_| ()) in recognize_float() 1374 cut(digit1) in recognize_float()
|
H A D | complete.rs | 5 use crate::character::complete::{char, digit1, sign}; 1399 map(tuple((digit1, opt(pair(char('.'), opt(digit1))))), |_| ()), in recognize_float() 1400 map(tuple((char('.'), digit1)), |_| ()) in recognize_float() 1405 cut(digit1) in recognize_float()
|
/third_party/python/Objects/ |
H A D | bytesobject.c | 1124 int digit1, digit2; in _PyBytes_DecodeEscape() local 1125 digit1 = _PyLong_DigitValue[Py_CHARMASK(s[0])]; in _PyBytes_DecodeEscape() 1127 if (digit1 < 16 && digit2 < 16) { in _PyBytes_DecodeEscape() 1128 *p++ = (unsigned char)((digit1 << 4) + digit2); in _PyBytes_DecodeEscape()
|
/third_party/rust/crates/nom/src/bytes/ |
H A D | tests.rs | 3 alpha1 as alpha, alphanumeric1 as alphanumeric, digit1 as digit, hex_digit1 as hex_digit,
|
/third_party/rust/crates/nom/src/multi/ |
H A D | tests.rs | 4 character::streaming::digit1 as digit,
|