xref: /freebsd/contrib/ntp/sntp/unity/auto/type_sanitizer.rb (revision a466cc55373fc3cf86837f09da729535b57e69a1)
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