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

Method is_valid

regex/regex-syntax/src/ast/mod.rs:1020–1022  ·  view source on GitHub ↗

Returns true if and only if this character class range is valid. The only case where a range is invalid is if its start is greater than its end.

(&self)

Source from the content-addressed store, hash-verified

1018 /// The only case where a range is invalid is if its start is greater than
1019 /// its end.
1020 pub fn is_valid(&self) -> bool {
1021 self.start.c <= self.end.c
1022 }
1023}
1024
1025/// A union of items inside a character class set.

Callers 2

parse_set_class_rangeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected