Home
last modified time | relevance | path

Searched refs:checked_sub (Results 1 – 25 of 27) sorted by relevance

12

/third_party/node/deps/v8/tools/
Dgen-keywords-gen-h.py32 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/
Dstring.rs6 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()
Dconvert.rs62 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/
Dbuffer.rs113 .checked_sub(self.min) in roll()
/third_party/rust/crates/regex/regex-syntax/src/hir/
Dinterval.rs490 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.rs31 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
/third_party/rust/crates/minimal-lexical/examples/
Dsimple.rs73 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.rs45 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
/third_party/rust/crates/minimal-lexical/fuzz/fuzz_targets/
Dparse.rs26 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/
Dmain.rs38 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
/third_party/rust/crates/minimal-lexical/tests/
Dintegration_tests.rs26 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
/third_party/rust/crates/cxx/gen/src/
Dout.rs189 write = write.checked_sub(1).unwrap(); in flush_blocks()
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/
Dmain.rs45 return value.checked_mul(10)?.checked_sub(digit as i32); in sub_digit_i32()
/third_party/rust/crates/regex/regex-syntax/src/
Derror.rs263 let pad = self.line_number_width.checked_sub(n.len()).unwrap(); in left_pad_line_number()
/third_party/rust/crates/nom/src/multi/
Dmod.rs934 .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/
Dviews.rs328 match next_line_index.checked_sub(*line_index) { in render()
/third_party/rust/crates/regex/src/literal/
Dimp.rs315 if let Some(&b) = lit.get(lit.len().checked_sub(1).unwrap()) { in suffixes()
/third_party/rust/crates/rust-openssl/openssl/src/
Dbn.rs284 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/
Dimp.rs849 pos = end.checked_sub(1); in iter_from_rfind()
/third_party/rust/crates/os_str_bytes/src/
Draw_str.rs41 (0..=string.len().checked_sub(pat.len())?) in find()
/third_party/rust/crates/memchr/src/memmem/
Dmod.rs425 self.pos = pos.checked_sub(1); in next()
/third_party/rust/crates/nom/src/character/
Dstreaming.rs678 … Some(d) => match value.checked_mul(10).and_then(|v| v.checked_sub(d as $t)) {
Dcomplete.rs772 … Some(d) => match value.checked_mul(10).and_then(|v| v.checked_sub(d as $t)) {
/third_party/rust/crates/regex/src/
Dcompile.rs1066 from_inst = self.c.insts.len().checked_sub(1).unwrap(); in c_utf8_seq_()
/third_party/rust/crates/serde/serde/src/de/
Dimpls.rs1073 if let Some(additional) = hint.checked_sub(self.0.len()) { in deserialize_in_place()

12