1module TypeSanitizer 2 3 def self.sanitize_c_identifier(unsanitized) 4 # convert filename to valid C identifier by replacing invalid chars with '_' 5 return unsanitized.gsub(/[-\/\\\.\,\s]/, "_") 6 end 7 8end 9
1module TypeSanitizer 2 3 def self.sanitize_c_identifier(unsanitized) 4 # convert filename to valid C identifier by replacing invalid chars with '_' 5 return unsanitized.gsub(/[-\/\\\.\,\s]/, "_") 6 end 7 8end 9