{"schema_version":1,"metadata":{"branch":"current","release":"7.9","architecture":"amd64","generated_at":"2026-09-09T04:04:41.004595+00:00","source_url":"https://cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/sqlports-7.55.tgz","source_sha256":"fcdbba1b9df747882aa9bab4af20ebec8dac10655069c90f1cd4145c06e1235e","package_count":12031,"source_kind":"sqlports"},"package":{"name":"ruby40-scanf-1.0.0","path":"devel/ruby-scanf","url":"/packages/current/devel/ruby-scanf/","comment":"implementation of the C function scanf","homepage":"https://github.com/ruby/scanf","maintainer":"Sebastian Reitenbach <sebastia@openbsd.org>","description":"scanf is an implementation of the C function scanf(3), modified as\nnecessary for Ruby compatibility.\n\nThe methods provided are String#scanf, IO#scanf, and Kernel#scanf.\nKernel#scanf is a wrapper around STDIN.scanf. IO#scanf can be used on\nany IO stream, including file handles and sockets. scanf can be called\neither with or without a block.\n\nScanf scans an input string or stream according to a format, as\ndescribed below in Conversions, and returns an array of matches between\nthe format and the input. The format is defined in a string, and is\nsimilar (though not identical) to the formats used in Kernel#printf and\nKernel#sprintf.\n\nThe format may contain conversion specifiers, which tell scanf what form\n(type) each particular matched substring should be converted to (e.g.,\ndecimal integer, floating point number, literal string, etc.) The\nmatches and conversions take place from left to right, and the\nconversions themselves are returned as an array.\n\nThe format string may also contain characters other than those in the\nconversion specifiers. Whitespace (blanks, tabs, or newlines) in the\nformat string matches any amount of whitespace, including none, in the\ninput. Everything else matches only itself.\n\nScanning stops, and scanf returns, when any input character fails to\nmatch the specifications in the format string, or when input is\nexhausted, or when everything in the format string has been matched. All\nmatches found up to the stopping point are returned in the return array\n(or yielded to the block, if a block was given).\n","package_architecture":"*","stem":"ruby40-scanf","readme":null,"dependencies":[{"path":"lang/ruby/4.0","type":"runtime","package_spec":"","url":"/packages/current/lang/ruby/4.0/"},{"path":"lang/ruby/4.0","type":"build","package_spec":"","url":"/packages/current/lang/ruby/4.0/"}],"reverse_dependencies":{"count":2,"url":"/packages/data/6c/6ce49699713a508486b2f3c649986a658a7a52b92d67a7520aa5cec0d00e39ea.json"},"categories":["devel","lang/ruby"],"flavors":["ruby33","ruby34","ruby40"],"only_for_architectures":[],"not_for_architectures":[]}}
