blob: 3d1db09fb4e8b20aa4aa2ef9c0693230b6a6245b (
plain)
1
2
3
4
5
6
|
module TypeSanitizer
def self.sanitize_c_identifier(unsanitized)
# convert filename to valid C identifier by replacing invalid chars with '_'
unsanitized.gsub(/[-\/\\.,\s]/, '_')
end
end
|