Skip to main content

unique_name

Function unique_name 

Source
pub fn unique_name(wb: &Workbook, name: &str) -> String
Expand description

name, or name (2), name (3)… if a macro already has it, a kept one too. A free name comes back as it is; a renamed one is shortened to make room for the suffix, so it stays within crate::model::MAX_MACRO_NAME characters. The result still goes through check.