/third_party/node/deps/v8/tools/ |
H A 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/ |
H A D | string.rs | 6 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 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/ |
H A D | buffer.rs | 113 .checked_sub(self.min) in roll()
|
/third_party/rust/crates/cxx/gen/cmd/src/gen/ |
H A D | out.rs | 189 write = write.checked_sub(1).unwrap(); in flush_blocks()
|
/third_party/rust/crates/cxx/gen/src/ |
H A D | out.rs | 189 write = write.checked_sub(1).unwrap(); in flush_blocks()
|
/third_party/rust/crates/cxx/gen/lib/src/gen/ |
H A D | out.rs | 189 write = write.checked_sub(1).unwrap(); in flush_blocks()
|
/third_party/rust/crates/cxx/gen/build/src/gen/ |
H A D | out.rs | 189 write = write.checked_sub(1).unwrap(); in flush_blocks()
|
/third_party/rust/crates/syn/examples/dump-syntax/src/ |
H A D | main.rs | 102 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 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/codespan/codespan-reporting/src/term/ |
H A D | views.rs | 328 match next_line_index.checked_sub(*line_index) {
|
/third_party/rust/crates/os_str_bytes/src/ |
H A D | raw_str.rs | 41 (0..=string.len().checked_sub(pat.len())?) in find()
|
/third_party/rust/crates/regex/src/literal/ |
H A D | imp.rs | 315 if let Some(&b) = lit.get(lit.len().checked_sub(1).unwrap()) { in suffixes()
|
/third_party/rust/crates/nom/src/multi/ |
H A 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/memchr/bench/src/memmem/ |
H A D | imp.rs | 849 pos = end.checked_sub(1);
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | bn.rs | 284 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 D | mod.rs | 425 self.pos = pos.checked_sub(1); in next()
|
/third_party/rust/crates/regex/src/ |
H A D | compile.rs | 1066 from_inst = self.c.insts.len().checked_sub(1).unwrap(); in c_utf8_seq_()
|
/third_party/rust/crates/nom/src/character/ |
H A D | streaming.rs | 678 Some(d) => match value.checked_mul(10).and_then(|v| v.checked_sub(d as $t)) {
|
H A 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/regex-syntax/src/ast/ |
H A D | parse.rs | 2166 self.depth = self.depth.checked_sub(1).unwrap(); in decrement_depth()
|
/third_party/rust/crates/memchr/bench/data/code/ |
H A D | rust-library.rs | 27488 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...] |