MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / is_prefix_re

Function is_prefix_re

codegraph-kernel/src/java.rs:79–82  ·  view source on GitHub ↗
(word: &str)

Source from the content-addressed store, hash-verified

77 RE.get_or_init(|| Regex::new(r"^([A-Z][A-Za-z0-9_]*)\s*::").unwrap())
78}
79fn is_prefix_re(word: &str) -> bool {
80 // /^is[A-Z]/ for Lombok boolean getters.
81 word.len() > 2 && word.starts_with("is") && word.as_bytes()[2].is_ascii_uppercase()
82}
83
84struct Scope {
85 row: u32,

Callers 1

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected