Home
last modified time | relevance | path

Searched refs:checked_sub (Results 1 - 22 of 22) sorted by relevance

/third_party/node/deps/v8/tools/
H A 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/
H A Dstring.rs6 let index = if let Some(index) = string.len().checked_sub(suffix.len()) {
13 let index = expect_encoded!(index.checked_sub(1));
42 prefix.len().checked_sub(SURROGATE_LENGTH)
H A 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/
H A Dbuffer.rs113 .checked_sub(self.min) in roll()
/third_party/rust/crates/cxx/gen/cmd/src/gen/
H A Dout.rs189 write = write.checked_sub(1).unwrap(); in flush_blocks()
/third_party/rust/crates/cxx/gen/src/
H A Dout.rs189 write = write.checked_sub(1).unwrap(); in flush_blocks()
/third_party/rust/crates/cxx/gen/lib/src/gen/
H A Dout.rs189 write = write.checked_sub(1).unwrap(); in flush_blocks()
/third_party/rust/crates/cxx/gen/build/src/gen/
H A Dout.rs189 write = write.checked_sub(1).unwrap(); in flush_blocks()
/third_party/rust/crates/syn/examples/dump-syntax/src/
H A Dmain.rs102 let code_line = match start.line.checked_sub(1).and_then(|n| code.lines().nth(n)) { in render_location()
/third_party/rust/crates/regex/regex-syntax/src/hir/
H A 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/codespan/codespan-reporting/src/term/
H A Dviews.rs328 match next_line_index.checked_sub(*line_index) {
/third_party/rust/crates/os_str_bytes/src/
H A Draw_str.rs41 (0..=string.len().checked_sub(pat.len())?) in find()
/third_party/rust/crates/regex/src/literal/
H A Dimp.rs315 if let Some(&b) = lit.get(lit.len().checked_sub(1).unwrap()) { in suffixes()
/third_party/rust/crates/nom/src/multi/
H A Dmod.rs934 .checked_sub(i.input_len()) in length_data()
980 .checked_sub(i.input_len()) in length_value()
/third_party/rust/crates/memchr/bench/src/memmem/
H A Dimp.rs849 pos = end.checked_sub(1);
/third_party/rust/crates/rust-openssl/openssl/src/
H A Dbn.rs284 pub fn checked_sub(&mut self, a: &BigNumRef, b: &BigNumRef) -> Result<(), ErrorStack> { in checked_sub() functions
1293 r.checked_sub(self, oth).unwrap(); in sub()
/third_party/rust/crates/memchr/src/memmem/
H A Dmod.rs425 self.pos = pos.checked_sub(1); in next()
/third_party/rust/crates/regex/src/
H A Dcompile.rs1066 from_inst = self.c.insts.len().checked_sub(1).unwrap(); in c_utf8_seq_()
/third_party/rust/crates/nom/src/character/
H A Dstreaming.rs678 Some(d) => match value.checked_mul(10).and_then(|v| v.checked_sub(d as $t)) {
H A Dcomplete.rs772 Some(d) => match value.checked_mul(10).and_then(|v| v.checked_sub(d as $t)) {
/third_party/rust/crates/regex/regex-syntax/src/ast/
H A Dparse.rs2166 self.depth = self.depth.checked_sub(1).unwrap(); in decrement_depth()
/third_party/rust/crates/memchr/bench/data/code/
H A Drust-library.rs27488 Cursor { index: self.len.checked_sub(1).unwrap_or(0), current: self.tail, list: self } in cursor_back()
27497 CursorMut { index: self.len.checked_sub(1).unwrap_or(0), current: self.tail, list: self } in cursor_back_mut()
28147 self.index = self.list.len().checked_sub(1).unwrap_or(0); in fmt()
28152 self.index = self.index.checked_sub(1).unwrap_or_else(|| self.list.len()); in fmt()
28244 self.index = self.list.len().checked_sub(1).unwrap_or(0); in move_prev()
28249 self.index = self.index.checked_sub(1).unwrap_or_else(|| self.list.len()); in move_prev()
[all...]

Completed in 63 milliseconds