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

Function capitalized_re

codegraph-kernel/src/java.rs:71–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 RE.get_or_init(|| Regex::new(r"^[A-Za-z_]\w*$").unwrap())
70}
71fn capitalized_re() -> &'static Regex {
72 static RE: OnceLock<Regex> = OnceLock::new();
73 RE.get_or_init(|| Regex::new(r"^[A-Z][A-Za-z0-9_]*$").unwrap())
74}
75fn method_ref_type_re() -> &'static Regex {
76 static RE: OnceLock<Regex> = OnceLock::new();
77 RE.get_or_init(|| Regex::new(r"^([A-Z][A-Za-z0-9_]*)\s*::").unwrap())

Callers 1

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected