Skip to main content

sanitize_module_name

Function sanitize_module_name 

Source
pub fn sanitize_module_name(raw: &str) -> String
Expand description

Convert a module name (from filename) to a valid Zig identifier suffix. Non-ASCII characters are converted to Unicode codepoint format _uXXXX.