class AdLint::Cc1::ScanfFormat::Conversion_bracket
Public Class Methods
suitable_conversion_specifier_character()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2841 def self.suitable_conversion_specifier_character "[" end
Public Instance Methods
valid_scanset?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2845 def valid_scanset? # NOTE: The `-' character in the scanset causes implementation-defined # behavior. So, AdLint treats the `-' character as an ordinary # character in the scanset. orig_set = scanset.chop.chars.to_a uniq_set = orig_set.uniq orig_set.size == uniq_set.size end