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

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

Callers 1

normalize_java_typeMethod · 0.70

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected