Home
last modified time | relevance | path

Searched refs:to_digit (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/serde_json/src/lexical/
Ddigit.rs7 pub(crate) fn to_digit(c: u8) -> Option<u32> { in to_digit() function
8 (c as char).to_digit(10) in to_digit()
Dparse.rs63 mantissa = match add_digit(mantissa, to_digit(c).unwrap()) { in parse_truncated_float()
Dbhcomp.rs46 value += as_limb(to_digit(digit).unwrap()); in parse_mantissa()
/external/rust/crates/idna/tests/
Duts46.rs156 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()
/external/rust/crates/percent-encoding/
Dlib.rs350 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()
/external/rust/crates/num-traits/src/
Dlib.rs261 match c.to_digit(radix) {
309 match c.to_digit(radix) {
/external/crosvm/acpi_tables/src/
Daml.rs325 | 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()
/external/rust/crates/url/src/
Dhost.rs371 match (input[i] as char).to_digit(16) { in parse_ipv6addr()
Dparser.rs1119 if let Some(digit) = c.to_digit(10) { in parse_port()
/external/rust/crates/nom/src/number/
Dstreaming.rs719 digit.to_digit(16).unwrap_or(0) << (k * 4) in hex_u32()
Dcomplete.rs722 digit.to_digit(16).unwrap_or(0) << (k * 4) in hex_u32()