MCPcopy Create free account
hub / github.com/davidblewett/rure-python / len_utf8

Method len_utf8

regex/src/input.rs:366–368  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

364 /// If the character is absent, then `0` is returned.
365 #[inline]
366 pub fn len_utf8(self) -> usize {
367 char::from_u32(self.0).map_or(0, |c| c.len_utf8())
368 }
369
370 /// Returns true iff the character is a word character.
371 ///

Callers 9

atMethod · 0.80
bumpMethod · 0.80
peekMethod · 0.80
peek_spaceMethod · 0.80
span_charMethod · 0.80
litFunction · 0.80
rangeFunction · 0.80
hir_from_charMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected