/third_party/rust/crates/rust-openssl/openssl/src/ |
D | dsa.rs | 531 let p = BigNum::from_u32(283).unwrap(); in test_priv_key_from_parts() 532 let q = BigNum::from_u32(47).unwrap(); in test_priv_key_from_parts() 533 let g = BigNum::from_u32(60).unwrap(); in test_priv_key_from_parts() 534 let priv_key = BigNum::from_u32(15).unwrap(); in test_priv_key_from_parts() 535 let pub_key = BigNum::from_u32(207).unwrap(); in test_priv_key_from_parts() 538 assert_eq!(dsa.pub_key(), &BigNum::from_u32(207).unwrap()); in test_priv_key_from_parts() 539 assert_eq!(dsa.priv_key(), &BigNum::from_u32(15).unwrap()); in test_priv_key_from_parts() 540 assert_eq!(dsa.p(), &BigNum::from_u32(283).unwrap()); in test_priv_key_from_parts() 541 assert_eq!(dsa.q(), &BigNum::from_u32(47).unwrap()); in test_priv_key_from_parts() 542 assert_eq!(dsa.g(), &BigNum::from_u32(60).unwrap()); in test_priv_key_from_parts() [all …]
|
D | bn.rs | 920 pub fn from_u32(n: u32) -> Result<BigNum, ErrorStack> { in from_u32() method 1373 let v0 = BigNum::from_u32(10_203_004).unwrap(); in test_to_from_slice() 1382 let a = BigNum::from_u32(909_829_283).unwrap(); in test_negation() 1390 let a = BigNum::from_u32(909_829_283).unwrap(); in test_shift() 1398 let range = BigNum::from_u32(909_829_283).unwrap(); in test_rand_range() 1401 assert!(result >= BigNum::from_u32(0).unwrap() && result < range); in test_rand_range() 1407 let range = BigNum::from_u32(909_829_283).unwrap(); in test_pseudo_rand_range() 1410 assert!(result >= BigNum::from_u32(0).unwrap() && result < range); in test_pseudo_rand_range() 1416 let a = BigNum::from_u32(19_029_017).unwrap(); in test_prime_numbers() 1429 let a = BigNum::from_u32(8).unwrap(); in test_secure_bn_ctx() [all …]
|
D | rsa.rs | 528 let e = BigNum::from_u32(ffi::RSA_F4 as u32)?; in generate() 849 let e = BigNum::from_u32(0x10001).unwrap(); in generate_with_e()
|
D | asn1.rs | 681 roundtrip(BigNum::from_u32(1234).unwrap()); in bn_cvt() 682 roundtrip(-BigNum::from_u32(1234).unwrap()); in bn_cvt()
|
D | ec.rs | 1087 let one = BigNum::from_u32(1).unwrap(); in cofactor() 1144 let one = BigNum::from_u32(1).unwrap(); in generator()
|
/third_party/rust/crates/regex/src/ |
D | utf8.rs | 68 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..=0x0010_FFFF => char::from_u32(cp).map(|cp| (cp, 4)), in decode_utf8()
|
D | input.rs | 350 match char::from_u32(self.0) { in fmt() 369 char::from_u32(self.0).map_or(1, |c| c.len_utf8()) in len_utf8() 380 char::from_u32(self.0).map_or(false, regex_syntax::is_word_character) in is_word_char() 387 match char::from_u32(self.0) { in is_word_byte()
|
/third_party/rust/crates/regex/regex-syntax/src/ |
D | utf8.rs | 437 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()
|
/third_party/rust/crates/unicode-ident/diagram/src/ |
D | main.rs | 16 *pixel = if char::from_u32(row * width + col).map_or(false, f) { in main()
|
/third_party/rust/crates/rust-cexpr/tests/ |
D | clang.rs | 71 write!(s, "{}", char::from_u32(chr).unwrap()).unwrap(); in test_definition() 93 .and_then(char::from_u32) in test_definition()
|
/third_party/rust/crates/num-traits/src/ |
D | cast.rs | 481 fn from_u32(n: u32) -> Option<Self> { in from_u32() method 567 fn from_u32(n: u32) -> Option<$T> { 665 fn from_u32(u32);
|
/third_party/rust/crates/regex/regex-syntax/src/hir/ |
D | interval.rs | 508 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()
|
D | mod.rs | 1032 for cp in (start..end).filter_map(char::from_u32) { in case_fold_simple()
|
/third_party/rust/crates/nom/examples/ |
D | string.rs | 57 map_opt(parse_u32, |value| std::char::from_u32(value))(input) in parse_unicode()
|
/third_party/rust/crates/unicode-ident/generate/src/ |
D | main.rs | 72 if let Some(ch) = char::from_u32(code) { in main()
|
/third_party/rust/crates/syn/src/ |
D | lit.rs | 1105 char::from_u32(u32::from(byte)).unwrap() in parse_lit_str_cooked() 1212 let ch = char::from_u32(u32::from(byte)).unwrap(); in parse_lit_byte_str_cooked() 1299 char::from_u32(u32::from(byte)).unwrap() in parse_lit_char() 1383 if let Some(ch) = char::from_u32(ch) { in backslash_u()
|
/third_party/rust/crates/nom/tests/ |
D | json.rs | 56 std::char::from_u32, in unicode_escape()
|
/third_party/rust/crates/nom/benchmarks/benches/ |
D | json.rs | 61 std::char::from_u32, in unicode_escape()
|
/third_party/rust/crates/rust-cexpr/src/ |
D | literal.rs | 178 .and_then(char::from_u32) in c_unicode_escape()
|
/third_party/rust/crates/regex/regex-syntax/src/ast/ |
D | parse.rs | 1556 let c = char::from_u32(codepoint).expect("Unicode scalar value"); in parse_octal() 1628 match u32::from_str_radix(hex, 16).ok().and_then(char::from_u32) { in parse_hex_digits() 1683 match u32::from_str_radix(hex, 16).ok().and_then(char::from_u32) { in parse_hex_brace() 4275 c: ::std::char::from_u32(i).unwrap(), in parse_octal() 4350 c: ::std::char::from_u32(i).unwrap(), in parse_hex_two() 4381 let c = match ::std::char::from_u32(i) { in parse_hex_four() 4445 let c = match ::std::char::from_u32(i) { in parse_hex_eight()
|
/third_party/rust/crates/num-traits/tests/ |
D | cast.rs | 350 assert_eq_from!(from_u8 from_u16 from_u32 from_u64 from_usize); in newtype_from_primitive()
|
/third_party/rust/crates/proc-macro2/src/ |
D | parse.rs | 583 '}' if len > 0 => return char::from_u32(value).is_some(), in backslash_u()
|
/third_party/rust/crates/regex/regex-syntax/src/hir/literal/ |
D | mod.rs | 479 for c in (s..e).filter_map(char::from_u32) { in _add_char_class()
|
/third_party/rust/crates/memchr/bench/data/code/ |
D | rust-library.rs | 4625 for c in (0..0x110000).filter_map(std::char::from_u32) { 4637 for c in (0..0x110000).filter_map(std::char::from_u32) {
|