Home
last modified time | relevance | path

Searched refs:len_utf8 (Results 1 - 13 of 13) sorted by relevance

/third_party/rust/crates/regex/src/
H A Dinput.rs163 InputAt { pos: i, c, byte: None, len: c.len_utf8() } in at()
368 pub fn len_utf8(self) -> usize { in len_utf8() functions
369 char::from_u32(self.0).map_or(1, |c| c.len_utf8()) in len_utf8()
/third_party/rust/crates/syn/src/
H A Dwhitespace.rs52 s = &s[ch.len_utf8()..];
/third_party/rust/crates/codespan/codespan-reporting/src/term/
H A Drenderer.rs279 let column_range = metrics.byte_index..(metrics.byte_index + ch.len_utf8()); in render_snippet_source()
425 let column_range = metrics.byte_index..(metrics.byte_index + ch.len_utf8()); in render_snippet_source()
752 let column_range = metrics.byte_index..(metrics.byte_index + ch.len_utf8()); in caret_pointers()
/third_party/rust/crates/codespan/codespan/src/
H A Dindex.rs247 ByteOffset(ch.len_utf8() as RawOffset) in from_char_len()
/third_party/rust/crates/codespan/codespan-lsp/src/
H A Dlib.rs88 let ch_off = ch.len_utf8(); in character_to_line_offset()
/third_party/rust/crates/nom/src/bytes/
H A Dstreaming.rs565 let next = control_char.len_utf8(); in escaped()
673 let next = index + control_char.len_utf8(); in escaped_transform()
H A Dcomplete.rs551 let next = control_char.len_utf8(); in escaped()
669 let next = index + control_char.len_utf8(); in escaped_transform()
/third_party/rust/crates/proc-macro2/src/
H A Dparse.rs115 s = s.advance(ch.len_utf8()); in skip_whitespace()
907 Ok((input.advance(first.len_utf8()), first)) in punct_char()
/third_party/rust/crates/nom/src/
H A Dtraits.rs266 self.len_utf8() in len()
297 self.len_utf8() in len()
/third_party/rust/crates/bindgen/bindgen/ir/
H A Dvar.rs233 assert_eq!(c.len_utf8(), 1); in parse()
/third_party/rust/crates/regex/regex-syntax/src/ast/
H A Dparse.rs479 offset += self.char().len_utf8(); in bump()
570 self.pattern()[self.offset() + self.char().len_utf8()..].chars().next() in peek()
582 let mut start = self.offset() + self.char().len_utf8(); in peek_space()
619 offset: self.offset().checked_add(self.char().len_utf8()).unwrap(), in span_char()
2414 lit_with(c, span(start..start + c.len_utf8())) in lit()
4734 offset: span.start.offset + start.len_utf8(), in parse_set_class()
4739 offset: span.end.offset - end.len_utf8(), in parse_set_class()
/third_party/rust/crates/regex/regex-syntax/src/hir/
H A Dtranslate.rs668 if !self.flags().unicode() && c.len_utf8() > 1 { in hir_from_char()
697 if c.len_utf8() > 1 { in hir_from_char_case_insensitive()
/third_party/rust/crates/memchr/bench/data/code/
H A Drust-library.rs3576 let ip = i + ci.len_utf8(); in test_find_str()
4259 for j in 1..ch.len_utf8() { in test_is_char_boundary()
15361 debug_assert!('Σ'.len_utf8() == 2); in to_lowercase()
17251 match ch.len_utf8() { in push()
17331 let newlen = self.len() - ch.len_utf8(); in pop()
17367 let next = idx + ch.len_utf8(); in remove()
17482 let ch_len = ch.len_utf8();
[all...]

Completed in 58 milliseconds