]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - contrib/ntp/sntp/unity/auto/type_sanitizer.rb
- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
[FreeBSD/releng/10.3.git] / contrib / ntp / sntp / unity / auto / type_sanitizer.rb
1 module 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
8 end