Home
last modified time | relevance | path

Searched refs:char_indices (Results 1 – 12 of 12) sorted by relevance

/third_party/rust/crates/heck/src/
Dlib.rs111 let mut char_indices = word.char_indices().peekable(); in transform() localVariable
115 while let Some((i, c)) = char_indices.next() { in transform()
124 if let Some(&(next_i, next)) = char_indices.peek() { in transform()
200 let mut char_indices = s.char_indices(); in capitalize() localVariable
201 if let Some((_, c)) = char_indices.next() { in capitalize()
203 if let Some((i, _)) = char_indices.next() { in capitalize()
/third_party/rust/crates/clap/src/output/textwrap/
Dword_separators.rs4 let mut char_indices = line.char_indices(); in find_words_ascii_space() localVariable
7 for (idx, ch) in char_indices.by_ref() { in find_words_ascii_space()
/third_party/rust/crates/codespan/codespan-reporting/src/term/
Drenderer.rs278 for (metrics, ch) in self.char_metrics(source.char_indices()) { in render_snippet_source()
414 .char_metrics(source.char_indices()) in render_snippet_source()
492 source.char_indices(), in render_snippet_source()
516 .char_indices() in render_snippet_source()
668 char_indices: impl Iterator<Item = (usize, char)>, in char_metrics()
675 char_indices.map(move |(byte_index, ch)| { in char_metrics()
749 char_indices: impl Iterator<Item = (usize, char)>, in caret_pointers()
751 for (metrics, ch) in self.char_metrics(char_indices) { in caret_pointers()
851 .char_metrics(source.char_indices()) in label_multi_top_caret()
885 .char_metrics(source.char_indices()) in label_multi_bottom_caret()
/third_party/rust/crates/proc-macro2/src/
Dparse.rs61 fn char_indices(&self) -> CharIndices<'a> { in char_indices() method
62 self.rest.char_indices() in char_indices()
323 let mut chars = input.char_indices(); in ident_not_raw()
385 let mut chars = input.char_indices(); in cooked_string()
408 chars = input.char_indices(); in cooked_string()
549 let mut chars = input.char_indices(); in cooked_c_string()
574 chars = input.char_indices(); in cooked_c_string()
609 let mut chars = input.char_indices(); in character()
985 let chars = input.char_indices(); in take_until_newline_or_eof()
Dfallback.rs385 .char_indices() in source_text()
398 let source_text = match trunc_lo.char_indices().nth(char_len) { in source_text()
/third_party/rust/crates/regex/fuzz/fuzz_targets/
Dfuzz_regex_match.rs14 let char_index = data.char_indices().nth(split_off_point);
/third_party/rust/crates/clap/clap_lex/src/
Dlib.rs412 let utf8_prefix = utf8_prefix.char_indices(); in new()
459 self.utf8_prefix = "".char_indices(); in next_value_os()
/third_party/rust/crates/cxx/src/
Dlossy.rs38 for (i, ch) in valid.char_indices() { in debug()
/third_party/rust/crates/serde/serde_derive/src/internals/
Dcase.rs65 for (i, ch) in variant.char_indices() { in apply_to_variant()
/third_party/rust/crates/nom/src/
Dtraits.rs383 self.char_indices() in iter_indices()
393 for (o, c) in self.char_indices() { in position()
403 for (index, _) in self.char_indices() { in slice_index()
/third_party/rust/crates/memchr/bench/data/code/
Drust-library.rs133 b.iter(|| assert_eq!(s.char_indices().count(), len)); in char_indicesator()
141 b.iter(|| assert_eq!(s.char_indices().rev().count(), len)); in char_indicesator_rev()
3575 for (i, ci) in string.char_indices() { in test_find_str()
3577 for j in string[ip..].char_indices().map(|(i, _)| i).chain(Some(string.len() - ip)) { in test_find_str()
4256 for (i, ch) in s.char_indices() { in test_is_char_boundary()
4502 for (index, _) in s.char_indices() { in test_split_at()
4738 let it = s.char_indices();
4755 let it = s.char_indices().rev();
4768 let mut it = s.char_indices();
15333 for (i, c) in self[..].char_indices() {
/third_party/rust/crates/regex/regex-syntax/src/ast/
Dparse.rs584 for (i, c) in self.pattern()[start..].char_indices() { in peek_space()