recoverCppMacroDefinedName: macro-shaped parsed name.
()
| 107 | } |
| 108 | /// recoverCppMacroDefinedName: macro-shaped parsed name. |
| 109 | fn macro_shaped_re() -> &'static Regex { |
| 110 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 111 | RE.get_or_init(|| Regex::new(r"^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)+$").unwrap()) |
| 112 | } |
| 113 | fn has_lower_re() -> &'static Regex { |
| 114 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 115 | RE.get_or_init(|| Regex::new(r"[a-z]").unwrap()) |
no test coverage detected