Skip to main content

sanitize_segment

Function sanitize_segment 

Source
pub fn sanitize_segment(segment: &str) -> String
Expand description

One segment as a LikeC4 identifier: - and any other character outside [A-Za-z0-9_] become _, a leading digit gets a _ in front of it, and a RESERVED word gets one after it.