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