Skip to main content

validate_name_rules

Function validate_name_rules 

Source
pub fn validate_name_rules(name: &str, windows: bool) -> Result<(), String>
Expand description

The name rules (spec §7.4), with the Windows-only ones switched by windows so every rule can be tested on any platform. Errors are sentences, shown to the user as they are.