class AdLint::Cc1::ScanfFormat::Ordinary
Public Class Methods
scan(fmt_str)
click to toggle source
# File lib/adlint/cc1/format.rb, line 2010 def self.scan(fmt_str) # NOTE: The ISO C99 standard says; # # 7.19.6.2 The fscanf function # # 3 The format shall be a multibyte character sequence, beginning and # ending in its initial shift state. The format is composed of zero # or more directives: one or more white-space characters, an ordinary # multibyte character (neither % nor a white-space character), or a # conversion specification. Each conversion specification is # introduced by the character %. After the %, the following appear # in sequence: # # -- An optional assignment-suppressing character *. # -- An optional decimal integer greater than zero that specifies the # maximum field width (in characters). # -- An optional length modifier that specifies the size of the # receiving object. # -- A conversion specifier character that specifies the type of # conversion to be applied. fmt_str.slice!(/\A[^%\s]+/) end
Public Instance Methods
acceptable?()
click to toggle source
assignment_suppressing_character()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2096 def assignment_suppressing_character nil end
complete?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2068 def complete? true end
consume_arguments?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2045 def consume_arguments? false end
conversion_specifier?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2041 def conversion_specifier? false end
conversion_specifier_character()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2108 def conversion_specifier_character nil end
field_width()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2100 def field_width nil end
length_modifier()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2104 def length_modifier nil end
ordinary?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2037 def ordinary? true end
scanset()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2112 def scanset nil end
undefined?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2072 def undefined? false end
valid_assignment_suppressing_character?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2076 def valid_assignment_suppressing_character? false end
valid_conversion_specifier_character?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2088 def valid_conversion_specifier_character? false end
valid_field_width?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2080 def valid_field_width? false end
valid_length_modifier?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2084 def valid_length_modifier? false end
valid_scanset?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2092 def valid_scanset? false end
wellformed?()
click to toggle source
whitespace?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 2033 def whitespace? false end