Home
last modified time | relevance | path

Searched refs:hex_u32 (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/nom/src/number/
Dstreaming.rs703 pub fn hex_u32<'a, E: ParseError<&'a [u8]>>(input: &'a[u8]) -> IResult<&'a[u8], u32, E> { in hex_u32() function
1145 hex_u32(&b";"[..]), in hex_u32_tests()
1148 assert_parse!(hex_u32(&b"ff;"[..]), Ok((&b";"[..], 255))); in hex_u32_tests()
1149 assert_parse!(hex_u32(&b"1be2;"[..]), Ok((&b";"[..], 7138))); in hex_u32_tests()
1150 assert_parse!(hex_u32(&b"c5a31be2;"[..]), Ok((&b";"[..], 3_315_801_058))); in hex_u32_tests()
1151 assert_parse!(hex_u32(&b"C5A31be2;"[..]), Ok((&b";"[..], 3_315_801_058))); in hex_u32_tests()
1152 assert_parse!(hex_u32(&b"00c5a31be2;"[..]), Ok((&b"e2;"[..], 12_952_347))); in hex_u32_tests()
1154 hex_u32(&b"c5a31be201;"[..]), in hex_u32_tests()
1157 assert_parse!(hex_u32(&b"ffffffff;"[..]), Ok((&b";"[..], 4_294_967_295))); in hex_u32_tests()
1158 assert_parse!(hex_u32(&b"0x1be2;"[..]), Ok((&b"x1be2;"[..], 0))); in hex_u32_tests()
[all …]
Dcomplete.rs707 pub fn hex_u32<'a, E: ParseError<&'a [u8]>>(input: &'a[u8]) -> IResult<&'a[u8], u32, E> { in hex_u32() function
1136 hex_u32(&b";"[..]), in hex_u32_tests()
1139 assert_parse!(hex_u32(&b"ff;"[..]), Ok((&b";"[..], 255))); in hex_u32_tests()
1140 assert_parse!(hex_u32(&b"1be2;"[..]), Ok((&b";"[..], 7138))); in hex_u32_tests()
1141 assert_parse!(hex_u32(&b"c5a31be2;"[..]), Ok((&b";"[..], 3_315_801_058))); in hex_u32_tests()
1142 assert_parse!(hex_u32(&b"C5A31be2;"[..]), Ok((&b";"[..], 3_315_801_058))); in hex_u32_tests()
1143 assert_parse!(hex_u32(&b"00c5a31be2;"[..]), Ok((&b"e2;"[..], 12_952_347))); in hex_u32_tests()
1145 hex_u32(&b"c5a31be201;"[..]), in hex_u32_tests()
1148 assert_parse!(hex_u32(&b"ffffffff;"[..]), Ok((&b";"[..], 4_294_967_295))); in hex_u32_tests()
1149 assert_parse!(hex_u32(&b"0x1be2;"[..]), Ok((&b"x1be2;"[..], 0))); in hex_u32_tests()
[all …]
/external/rust/crates/nom/
DCHANGELOG.md476 - @JayKickliter for extending `hex_u32`
490 - `hex_u32` accepts uppercase digits as well
670 - `hex_u32` does not parses more than 8 chars now
790 - `hex_u32` parser