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

Method is_word_byte

regex/src/input.rs:380–385  ·  view source on GitHub ↗

Returns true iff the byte is a word byte. If the byte is absent, then false is returned.

(self)

Source from the content-addressed store, hash-verified

378 ///
379 /// If the byte is absent, then false is returned.
380 pub fn is_word_byte(self) -> bool {
381 match char::from_u32(self.0) {
382 Some(c) if c <= '\u{7F}' => syntax::is_word_byte(c as u8),
383 None | Some(_) => false,
384 }
385 }
386}
387
388impl From<char> for Char {

Callers 1

is_empty_matchMethod · 0.80

Calls 1

is_word_byteFunction · 0.85

Tested by

no test coverage detected