class AdLint::Cc1::PrintfFormat::CharacterConversionSpecifier

Public Class Methods

new(fmt, trailing_args, env, flags, field_width, prec, len_mod, cs_char) click to toggle source
# File lib/adlint/cc1/format.rb, line 1245
def initialize(fmt, trailing_args, env, flags, field_width, prec,
               len_mod, cs_char)
  super(fmt, trailing_args, env, true, flags, field_width, prec, len_mod,
        cs_char)
end

Public Instance Methods

max_length() click to toggle source
# File lib/adlint/cc1/format.rb, line 1260
def max_length
  min_length
end
min_length() click to toggle source
# File lib/adlint/cc1/format.rb, line 1255
def min_length
  # NOTE: Ruby has the buitin mostly C compliant sprintf.
  (ruby_sprintf_format % " ").length
end
valid_conversion_specifier_character?() click to toggle source
# File lib/adlint/cc1/format.rb, line 1251
def valid_conversion_specifier_character?
  true
end