Home
last modified time | relevance | path

Searched refs:from_u32 (Results 1 – 25 of 29) sorted by relevance

12

/external/rust/crates/rayon/tests/
Dchars.rs6 let low = char::from_u32(0xD800 - 0x7).unwrap(); in half_open_correctness()
7 let high = char::from_u32(0xE000 + 0x7).unwrap(); in half_open_correctness()
24 let low = char::from_u32(0xD800 - 0x7).unwrap(); in closed_correctness()
25 let high = char::from_u32(0xE000 + 0x7).unwrap(); in closed_correctness()
/external/rust/crates/regex/src/
Dutf8.rs68 0x80..=0x7FF => char::from_u32(cp).map(|cp| (cp, 2)), in decode_utf8()
88 0x800..=0xFFFF => char::from_u32(cp).map(|cp| (cp, 3)), in decode_utf8()
111 0x10000..=0x10FFFF => char::from_u32(cp).map(|cp| (cp, 4)), in decode_utf8()
Dinput.rs352 match char::from_u32(self.0) { in fmt()
371 char::from_u32(self.0).map_or(1, |c| c.len_utf8()) in len_utf8()
382 char::from_u32(self.0).map_or(false, syntax::is_word_character) in is_word_char()
389 match char::from_u32(self.0) { in is_word_byte()
/external/rust/crates/regex-syntax/src/
Dutf8.rs437 let cs = char::from_u32(self.start).unwrap(); in encode()
438 let ce = char::from_u32(self.end).unwrap(); in encode()
496 let c = match char::from_u32(i) { in single_codepoint_one_sequence()
/external/rust/crates/chrono/src/
Dlib.rs1097 Self::from_u32(n as u32) in from_u64()
1102 Self::from_u32(n as u32) in from_i64()
1106 fn from_u32(n: u32) -> Option<Month> { in from_u32() method
1459 let jan_opt = Month::from_u32(1); in test_month_enum_primitive_parse()
1462 let no_month = Month::from_u32(13); in test_month_enum_primitive_parse()
1469 assert_eq!(Month::from_u32(date.month()), Some(Month::October)); in test_month_enum_primitive_parse()
/external/rust/crates/zip/src/
Dcp437.rs169 ::std::char::from_u32(output).unwrap() in to_char()
/external/rust/crates/unicode-normalization/src/
Dtest.rs111 assert!(!is_combining_mark(char::from_u32(cp).unwrap())); in test_is_combining_mark_ascii()
Dstream_safe.rs146 let ch = match char::from_u32(ch) { in test_classify_nonstarters()
/external/rust/crates/num-derive/tests/
Dnewtype.rs34 assert_eq!(MyFloat::from_u32(25), Some(MyFloat(25.0))); in test_from_primitive()
/external/rust/crates/cexpr/tests/
Dclang.rs71 write!(s, "{}", char::from_u32(chr).unwrap()).unwrap(); in test_definition()
93 .and_then(char::from_u32) in test_definition()
/external/rust/crates/num-traits/src/
Dcast.rs481 fn from_u32(n: u32) -> Option<Self> { in from_u32() method
567 fn from_u32(n: u32) -> Option<$T> {
665 fn from_u32(u32);
/external/rust/crates/regex-syntax/src/hir/
Dinterval.rs508 c => char::from_u32((c as u32).checked_add(1).unwrap()).unwrap(), in increment()
515 c => char::from_u32((c as u32).checked_sub(1).unwrap()).unwrap(), in decrement()
/external/rust/crates/idna/tests/
Duts46.rs160 match char::from_u32(((c1 * 16 + c2) * 16 + c3) * 16 + c4) { in unescape()
/external/rust/crates/syn/src/
Dlit.rs1081 char::from_u32(u32::from(byte)).unwrap() in parse_lit_str_cooked()
1188 let ch = char::from_u32(u32::from(byte)).unwrap(); in parse_lit_byte_str_cooked()
1275 char::from_u32(u32::from(byte)).unwrap() in parse_lit_char()
1359 if let Some(ch) = char::from_u32(ch) { in backslash_u()
/external/rust/crates/serde_json/src/
Dread.rs862 match char::from_u32(n) { in parse_escape()
870 n => match char::from_u32(n as u32) { in parse_escape()
926 if char::from_u32(n).is_none() { in ignore_escape()
/external/rust/crates/idna/src/
Dpunycode.rs139 let c = match char::from_u32(code_point) { in decode()
/external/rust/crates/num-derive/src/
Dlib.rs302 fn from_u32(n: u32) -> Option<Self> { in from_primitive()
303 <#inner_ty as #import::FromPrimitive>::from_u32(n).map(#name) in from_primitive()
/external/rust/crates/cexpr/src/
Dliteral.rs178 .and_then(char::from_u32) in c_unicode_escape()
/external/rust/crates/rand/src/distributions/
Duniform.rs1297 let mut max = core::char::from_u32(0).unwrap(); in test_char()
1305 core::char::from_u32(0xD7F0).unwrap(), in test_char()
1306 core::char::from_u32(0xE010).unwrap(), in test_char()
/external/rust/crates/chrono/src/naive/
Dinternals.rs330 Weekday::from_u32(((of >> 4) + (of & 0b111)) % 7).unwrap() in weekday()
338 (weekord / 7, Weekday::from_u32(weekord % 7).unwrap()) in isoweekdate_raw()
/external/rust/crates/arbitrary/src/
Dlib.rs352 if let Some(c) = char::from_u32(c) { in arbitrary()
357 Ok(char::from_u32(c) in arbitrary()
/external/rust/crates/num-traits/tests/
Dcast.rs350 assert_eq_from!(from_u8 from_u16 from_u32 from_u64 from_usize); in newtype_from_primitive()
/external/rust/crates/regex-syntax/src/ast/
Dparse.rs1568 let c = char::from_u32(codepoint).expect("Unicode scalar value"); in parse_octal()
1640 match u32::from_str_radix(hex, 16).ok().and_then(char::from_u32) { in parse_hex_digits()
1695 match u32::from_str_radix(hex, 16).ok().and_then(char::from_u32) { in parse_hex_brace()
4284 c: ::std::char::from_u32(i).unwrap(), in parse_octal()
4359 c: ::std::char::from_u32(i).unwrap(), in parse_hex_two()
4390 let c = match ::std::char::from_u32(i) { in parse_hex_four()
4454 let c = match ::std::char::from_u32(i) { in parse_hex_eight()
/external/rust/crates/proc-macro2/src/
Dparse.rs578 '}' if len > 0 => return char::from_u32(value).is_some(), in backslash_u()
/external/rust/crates/bstr/src/
Dutf8.rs876 let cp = match char::from_u32(i) { in validate_all_codepoints()

12