/third_party/node/deps/v8/tools/ |
D | gen-keywords-gen-h.py | 32 def checked_sub(pattern, sub, out, count=1, flags=0): function 42 return checked_sub(r'\bsize_t\b', 'int', out, count=4) 62 out = checked_sub( 67 out = checked_sub( 74 out = checked_sub( 85 return checked_sub(r'if \(len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH\)', 103 out = checked_sub( 122 out = checked_sub( 138 out = checked_sub(r'Hash\s*\(\s*str,\s*len\s*\)', 140 out = checked_sub( [all …]
|
/third_party/rust/crates/os_str_bytes/src/windows/wtf8/ |
D | string.rs | 6 let index = if let Some(index) = string.len().checked_sub(suffix.len()) { in ends_with() 13 let index = expect_encoded!(index.checked_sub(1)); in ends_with() 42 prefix.len().checked_sub(SURROGATE_LENGTH) in starts_with()
|
D | convert.rs | 62 if let Some(shifts) = self.shifts.checked_sub(1) { in next() 149 .checked_sub(MIN_SURROGATE_CODE) in next()
|
/third_party/rust/crates/aho-corasick/src/ |
D | buffer.rs | 113 .checked_sub(self.min) in roll()
|
/third_party/rust/crates/regex/regex-syntax/src/hir/ |
D | interval.rs | 490 self.checked_sub(1).unwrap() in decrement() 515 c => char::from_u32((c as u32).checked_sub(1).unwrap()).unwrap(), in decrement()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/rng-tests/ |
D | _common.rs | 31 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
|
/third_party/rust/crates/minimal-lexical/examples/ |
D | simple.rs | 73 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-random/ |
D | _common.rs | 45 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
|
/third_party/rust/crates/minimal-lexical/fuzz/fuzz_targets/ |
D | parse.rs | 26 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/ |
D | main.rs | 38 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
|
/third_party/rust/crates/minimal-lexical/tests/ |
D | integration_tests.rs | 26 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
|
/third_party/rust/crates/cxx/gen/src/ |
D | out.rs | 189 write = write.checked_sub(1).unwrap(); in flush_blocks()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/ |
D | main.rs | 45 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
|
/third_party/rust/crates/regex/regex-syntax/src/ |
D | error.rs | 263 let pad = self.line_number_width.checked_sub(n.len()).unwrap(); in left_pad_line_number()
|
/third_party/rust/crates/nom/src/multi/ |
D | mod.rs | 934 .checked_sub(i.input_len()) in length_data() 980 .checked_sub(i.input_len()) in length_value()
|
/third_party/rust/crates/codespan/codespan-reporting/src/term/ |
D | views.rs | 328 match next_line_index.checked_sub(*line_index) { in render()
|
/third_party/rust/crates/regex/src/literal/ |
D | imp.rs | 315 if let Some(&b) = lit.get(lit.len().checked_sub(1).unwrap()) { in suffixes()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
D | bn.rs | 284 pub fn checked_sub(&mut self, a: &BigNumRef, b: &BigNumRef) -> Result<(), ErrorStack> { in checked_sub() method 1293 r.checked_sub(self, oth).unwrap(); in sub()
|
/third_party/rust/crates/memchr/bench/src/memmem/ |
D | imp.rs | 849 pos = end.checked_sub(1); in iter_from_rfind()
|
/third_party/rust/crates/os_str_bytes/src/ |
D | raw_str.rs | 41 (0..=string.len().checked_sub(pat.len())?) in find()
|
/third_party/rust/crates/memchr/src/memmem/ |
D | mod.rs | 425 self.pos = pos.checked_sub(1); in next()
|
/third_party/rust/crates/nom/src/character/ |
D | streaming.rs | 678 … Some(d) => match value.checked_mul(10).and_then(|v| v.checked_sub(d as $t)) {
|
D | complete.rs | 772 … Some(d) => match value.checked_mul(10).and_then(|v| v.checked_sub(d as $t)) {
|
/third_party/rust/crates/regex/src/ |
D | compile.rs | 1066 from_inst = self.c.insts.len().checked_sub(1).unwrap(); in c_utf8_seq_()
|
/third_party/rust/crates/serde/serde/src/de/ |
D | impls.rs | 1073 if let Some(additional) = hint.checked_sub(self.0.len()) { in deserialize_in_place()
|