Lines Matching refs:input
32 fn boolean(input: &str) -> IResult<&str, bool> {
33 alt((value(false, tag("false")), value(true, tag("true"))))(input)
36 fn u16_hex(input: &str) -> IResult<&str, u16> {
37 map_res(take(4usize), |s| u16::from_str_radix(s, 16))(input)
40 fn unicode_escape(input: &str) -> IResult<&str, char> {
62 )(input)
65 fn character(input: &str) -> IResult<&str, char> {
66 let (input, c) = none_of("\"")(input)?;
81 ))(input)
83 Ok((input, c))
87 fn string(input: &str) -> IResult<&str, String> {
95 )(input)
102 fn array(input: &str) -> IResult<&str, Vec<JsonValue>> {
107 )(input)
110 fn object(input: &str) -> IResult<&str, HashMap<String, JsonValue>> {
121 )(input)
124 fn json_value(input: &str) -> IResult<&str, JsonValue> {
134 ))(input)
137 fn json(input: &str) -> IResult<&str, JsonValue> {
138 ws(json_value).parse(input)
196 fn std_float(input: &[u8]) -> IResult<&[u8], f64, (&[u8], ErrorKind)> {
197 match recognize_float(input) {