recoverCppMacroDefinedName: macro-shaped parsed name.
()
| 82 | |
| 83 | /// recoverCppMacroDefinedName: macro-shaped parsed name. |
| 84 | fn macro_shaped_re() -> &'static Regex { |
| 85 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 86 | RE.get_or_init(|| Regex::new(r"^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)+$").unwrap()) |
| 87 | } |
| 88 | fn has_lower_re() -> &'static Regex { |
| 89 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 90 | RE.get_or_init(|| Regex::new(r"[a-z]").unwrap()) |
no test coverage detected