Skip to main content

remove_ci

Function remove_ci 

Source
pub fn remove_ci(map: &mut HashMap<String, Vec<String>>, name: &str) -> bool
Expand description

Removes every entry whose name matches name case-insensitively.

Returns true if anything was removed. A plain map.remove(&name.to_lowercase()) only works when the stored key is already lowercase; this handles any case.