()
| 145 | RE.get_or_init(|| Regex::new(r"\s+").unwrap()) |
| 146 | } |
| 147 | fn simple_ident_re() -> &'static Regex { |
| 148 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 149 | RE.get_or_init(|| Regex::new(r"^[A-Za-z_][A-Za-z0-9_]*$").unwrap()) |
| 150 | } |
| 151 | /// recoverMangledCppName's `Ret (name)` idiom guard. |
| 152 | fn ret_paren_name_re() -> &'static Regex { |
| 153 | static RE: OnceLock<Regex> = OnceLock::new(); |
no test coverage detected