/third_party/rust/crates/nom/benchmarks/benches/ |
H A D | ini.rs | 11 combinator::{map, map_res, opt}, 20 map_res( in category() 27 let (i, key) = map_res(alphanumeric, str::from_utf8)(i)?; in key_value() 29 let (i, val) = map_res(take_while(|c| c != b'\n' && c != b';'), str::from_utf8)(i)?; in key_value()
|
H A D | arithmetic.rs | 11 combinator::map_res, 26 map_res(digit1, |digits| { in factor()
|
H A D | json.rs | 12 combinator::{map, map_opt, map_res, value, verify}, 37 map_res(take(4usize), |s| u16::from_str_radix(s, 16))(input) in u16_hex() 69 map_res(anychar, |c| { in character()
|
/third_party/rust/crates/nom/tests/ |
H A D | float.rs | 4 use nom::combinator::{map, map_res, opt, recognize}; 16 let float_str = map_res(float_bytes, str::from_utf8); in unsigned_float() 17 map_res(float_str, FromStr::from_str)(i) in unsigned_float()
|
H A D | reborrow_fold.rs | 8 use nom::combinator::{map, map_res}; 16 map_res(is_not(" \t\r\n"), str::from_utf8), in atom()
|
H A D | ini.rs | 6 combinator::{map, map_res, opt}, 16 map_res( in category() 23 let (i, key) = map_res(alphanumeric, str::from_utf8)(i)?; in key_value() 25 let (i, val) = map_res(take_while(|c| c != b'\n' && c != b';'), str::from_utf8)(i)?; in key_value()
|
H A D | css.rs | 2 use nom::combinator::map_res; 22 map_res(take_while_m_n(2, 2, is_hex_digit), from_hex)(input) in hex_primary()
|
H A D | arithmetic.rs | 6 combinator::map_res, 27 map_res(delimited(space, digit, space), FromStr::from_str), in factor()
|
H A D | json.rs | 7 combinator::{map, map_opt, map_res, value, verify}, 32 map_res(take(4usize), |s| u16::from_str_radix(s, 16))(input) in u16_hex() 64 map_res(anychar, |c| { in character()
|
H A D | arithmetic_ast.rs | 10 combinator::{map, map_res}, 72 map_res(delimited(multispace, digit, multispace), FromStr::from_str), in factor()
|
H A D | mp4.rs | 6 combinator::{map, map_res}, 247 map_res(take(4_usize), str::from_utf8)(input) in brand_name()
|
/third_party/rust/crates/nom/fuzz/fuzz_targets/ |
H A D | fuzz_arithmetic.rs | 12 combinator::{map, map_res, verify}, 61 map_res(delimited(space, digit, space), FromStr::from_str), in factor()
|
/third_party/rust/crates/nom/examples/ |
H A D | s_expression.rs | 11 combinator::{cut, map, map_res, opt}, 123 map_res(digit1, |digit_str: &str| { in parse_num()
|
H A D | string.rs | 17 use nom::combinator::{map, map_opt, map_res, value, verify}; 48 // `map_res` takes the result of a parser and applies a function that returns in parse_unicode() 51 let parse_u32 = map_res(parse_delimited_hex, move |hex| u32::from_str_radix(hex, 16)); in parse_unicode() 53 // map_opt is like map_res, but it takes an Option instead of a Result. If in parse_unicode()
|
/third_party/mesa3d/src/microsoft/vulkan/ |
H A D | dzn_device.c | 2223 ID3D12Resource_Unmap(mem->map_res, 0, NULL); in dzn_device_memory_destroy() 2225 if (mem->map_res) in dzn_device_memory_destroy() 2226 ID3D12Resource_Release(mem->map_res); in dzn_device_memory_destroy() 2349 (void **)&mem->map_res); in dzn_device_memory_create() 2407 assert(mem->map_res); in dzn_MapMemory() 2412 if (FAILED(ID3D12Resource_Map(mem->map_res, 0, &range, &map))) in dzn_MapMemory() 2432 assert(mem->map_res); in dzn_UnmapMemory() 2433 ID3D12Resource_Unmap(mem->map_res, 0, NULL); in dzn_UnmapMemory()
|
H A D | dzn_private.h | 287 ID3D12Resource *map_res; member
|
/third_party/rust/crates/nom/src/multi/ |
H A D | tests.rs | 323 use crate::combinator::map_res; in number() 325 map_res(map_res(digit, str::from_utf8), FromStr::from_str)(i) in number()
|
/third_party/rust/crates/nom/src/combinator/ |
H A D | mod.rs | 89 /// use nom::combinator::map_res; 92 /// let mut parse = map_res(digit1, |s: &str| s.parse::<u8>()); 104 pub fn map_res<I: Clone, O1, O2, E: FromExternalError<I, E2>, E2, F, G>( in map_res() functions
|