Searched refs:to_digit (Results 1 – 11 of 11) sorted by relevance
7 pub(crate) fn to_digit(c: u8) -> Option<u32> { in to_digit() function8 (c as char).to_digit(10) in to_digit()
63 mantissa = match add_digit(mantissa, to_digit(c).unwrap()) { in parse_truncated_float()
46 value += as_limb(to_digit(digit).unwrap()); in parse_mantissa()
156 let c1 = chars.next().unwrap().to_digit(16).unwrap(); in unescape()157 let c2 = chars.next().unwrap().to_digit(16).unwrap(); in unescape()158 let c3 = chars.next().unwrap().to_digit(16).unwrap(); in unescape()159 let c4 = chars.next().unwrap().to_digit(16).unwrap(); in unescape()
350 let h = char::from(*cloned_iter.next()?).to_digit(16)?; in after_percent_sign()351 let l = char::from(*cloned_iter.next()?).to_digit(16)?; in after_percent_sign()
261 match c.to_digit(radix) {309 match c.to_digit(radix) {
325 | name.chars().nth(3).unwrap().to_digit(16).unwrap() << 12 in new()326 | name.chars().nth(4).unwrap().to_digit(16).unwrap() << 8 in new()327 | name.chars().nth(5).unwrap().to_digit(16).unwrap() << 4 in new()328 | name.chars().nth(6).unwrap().to_digit(16).unwrap()) in new()
371 match (input[i] as char).to_digit(16) { in parse_ipv6addr()
1119 if let Some(digit) = c.to_digit(10) { in parse_port()
719 digit.to_digit(16).unwrap_or(0) << (k * 4) in hex_u32()
722 digit.to_digit(16).unwrap_or(0) << (k * 4) in hex_u32()