/external/rust/crates/heck/src/ |
D | lib.rs | 84 let mut char_indices = word.char_indices().peekable(); in transform() localVariable 88 while let Some((i, c)) = char_indices.next() { in transform() 95 if let Some(&(next_i, next)) = char_indices.peek() { in transform() 160 let mut char_indices = s.char_indices(); in capitalize() localVariable 161 if let Some((_, c)) = char_indices.next() { in capitalize() 163 if let Some((i, _)) = char_indices.next() { in capitalize()
|
/external/rust/crates/protobuf-codegen/src/ |
D | strx.rs | 23 let mut char_indices = s.char_indices(); in capitalize() localVariable 24 char_indices.next().unwrap(); in capitalize() 25 match char_indices.next() { in capitalize()
|
/external/rust/crates/textwrap/src/ |
D | core.rs | 263 let mut char_indices = self.word.char_indices(); in break_apart() localVariable 268 while let Some((idx, ch)) = char_indices.next() { in break_apart() 269 if skip_ansi_escape_sequence(ch, &mut char_indices.by_ref().map(|(_, ch)| ch)) { in break_apart() 340 let mut char_indices = line.char_indices(); in find_words() localVariable 349 while let Some((idx, ch)) = char_indices.next() { in find_words()
|
D | indentation.rs | 90 for (idx, ch) in line.char_indices() { in dedent() 108 for ((idx, a), b) in line.char_indices().zip(prefix.chars()) { in dedent()
|
D | lib.rs | 689 for ((idx, x), y) in prefix.char_indices().zip(options.subsequent_indent.chars()) { in unfill()
|
/external/rust/crates/codespan-reporting/src/term/ |
D | renderer.rs | 277 for (metrics, ch) in self.char_metrics(source.char_indices()) { in render_snippet_source() 413 .char_metrics(source.char_indices()) in render_snippet_source() 491 source.char_indices(), in render_snippet_source() 515 .char_indices() in render_snippet_source() 667 char_indices: impl Iterator<Item = (usize, char)>, in char_metrics() 674 char_indices.map(move |(byte_index, ch)| { in char_metrics() 748 char_indices: impl Iterator<Item = (usize, char)>, in caret_pointers() 750 for (metrics, ch) in self.char_metrics(char_indices) { in caret_pointers() 850 .char_metrics(source.char_indices()) in label_multi_top_caret() 884 .char_metrics(source.char_indices()) in label_multi_bottom_caret()
|
/external/rust/crates/proc-macro2/src/ |
D | parse.rs | 49 fn char_indices(&self) -> CharIndices<'a> { in char_indices() method 50 self.rest.char_indices() in char_indices() 295 let mut chars = input.char_indices(); in ident_not_raw() 355 let mut chars = input.char_indices().peekable(); in cooked_string() 436 let mut chars = rest.char_indices(); in cooked_byte_string() 462 let mut chars = input.char_indices(); in raw_string() 515 let mut chars = input.char_indices(); in character() 855 let chars = input.char_indices(); in take_until_newline_or_eof()
|
/external/rust/crates/thiserror-impl/src/ |
D | fmt.rs | 118 for (i, ch) in read.char_indices() { in take_int() 137 for (i, ch) in read.char_indices() { in take_ident()
|
/external/rust/crates/protobuf/src/text_format/lexer/ |
D | lexer_impl.rs | 130 let mut char_indices = rem.char_indices(); in next_char_opt() localVariable 131 let (_, c) = char_indices.next().unwrap(); in next_char_opt() 132 let c_len = char_indices.next().map(|(len, _)| len).unwrap_or(rem.len()); in next_char_opt()
|
/external/rust/crates/bstr/src/ |
D | ext_slice.rs | 1707 fn char_indices(&self) -> CharIndices { in char_indices() method 2205 for (s, _, ch) in self.char_indices() { in trim_start_with() 2228 for (_, e, ch) in self.char_indices().rev() { in trim_end_with() 2354 for (s, e, ch) in self.char_indices() { in to_lowercase_into() 2554 for (s, e, ch) in self.char_indices() { in to_uppercase_into() 3337 FieldsWith { f, bytes, chars: bytes.char_indices() } in new()
|
D | utf8.rs | 1255 B(input).char_indices().map(|(_, _, ch)| ch).collect(); in chars() 1271 B(input).char_indices().rev().map(|(_, _, ch)| ch).collect(); in chars()
|
D | impls.rs | 377 for (s, e, ch) in self.char_indices() { in fmt()
|
/external/rust/crates/unicode-bidi/src/ |
D | explicit.rs | 41 for (i, c) in text.char_indices() { in compute()
|
D | lib.rs | 151 for (i, c) in text.char_indices() { in new() 327 self.text.char_indices().map(|(i, _)| levels[i]).collect() in reordered_levels_per_char() 373 for (i, c) in line_str.char_indices() { in visual_runs()
|
/external/rust/crates/rayon/tests/ |
D | str.rs | 37 let ser_charind: Vec<_> = s.char_indices().collect(); in execute_strings()
|
/external/rust/crates/serde_derive/src/internals/ |
D | case.rs | 70 for (i, ch) in variant.char_indices() { in apply_to_variant()
|
/external/rust/crates/unicode-segmentation/src/ |
D | word.rs | 180 for (curr, ch) in self.string.char_indices() { in next() 406 for (curr, ch) in self.string.char_indices().rev() { in next_back()
|
/external/rust/crates/nom/src/ |
D | traits.rs | 386 self.char_indices() in iter_indices() 396 for (o, c) in self.char_indices() { in position() 406 for (index, _) in self.char_indices() { in slice_index()
|
/external/rust/crates/rusqlite/src/ |
D | pragma.rs | 287 let chars = s.char_indices(); in is_identifier()
|
/external/rust/crates/rayon/src/ |
D | str.rs | 487 folder.consume_iter(self.chars.char_indices().map(offset(base))) in fold_with()
|
/external/rust/crates/regex-syntax/src/ast/ |
D | parse.rs | 592 for (i, c) in self.pattern()[start..].char_indices() { in peek_space()
|