Sha256: 852dd594fd4f0f1f81b760dcf22a214e1d451617e0fff092fbb084215a6afaba

Contents?: true

Size: 207 Bytes

Versions: 6

Compression:

Stored size: 207 Bytes

Contents

module TypeSanitizer
  def self.sanitize_c_identifier(unsanitized)
    # convert filename to valid C identifier by replacing invalid chars with '_'
    unsanitized.gsub(/[-\/\\\.\,\s]/, '_')
  end
end

Version data entries

6 entries across 2 versions & 1 rubygems

Version Path
ceedling-0.29.1 vendor/c_exception/vendor/unity/auto/type_sanitizer.rb
ceedling-0.29.1 vendor/cmock/vendor/unity/auto/type_sanitizer.rb
ceedling-0.29.1 vendor/unity/auto/type_sanitizer.rb
ceedling-0.29.0 vendor/c_exception/vendor/unity/auto/type_sanitizer.rb
ceedling-0.29.0 vendor/cmock/vendor/unity/auto/type_sanitizer.rb
ceedling-0.29.0 vendor/unity/auto/type_sanitizer.rb