Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-String-Formatter-1.235-1.6 RPM for noarch

From OpenSuSE Tumbleweed for noarch

Name: perl-String-Formatter Distribution: openSUSE Tumbleweed
Version: 1.235 Vendor: openSUSE
Release: 1.6 Build date: Sun Jan 1 04:18:20 2023
Group: Unspecified Build host: reproducible
Size: 71815 Source RPM: perl-String-Formatter-1.235-1.6.src.rpm
Packager: https://bugs.opensuse.org
Url: https://metacpan.org/release/String-Formatter
Summary: Build sprintf-like functions of your own
String::Formatter is a tool for building sprintf-like formatting routines.
It supports named or positional formatting, custom conversions, fixed
string interpolation, and simple width-matching out of the box. It is easy
to alter its behavior to write new kinds of format string expanders. For
most cases, it should be easy to build all sorts of formatters out of the
options built into String::Formatter.

Normally, String::Formatter will be used to import a sprintf-like routine
referred to as "'stringf'", but which can be given any name you like. This
routine acts like sprintf in that it takes a string and some inputs and
returns a new string:

  my $output = stringf "Some %a format %s for you to %u.\n", { ... };

This routine is actually a wrapper around a String::Formatter object
created by importing stringf. In the following code, the entire hashref
after "stringf" is passed to String::Formatter's constructor (the 'new'
method), save for the '-as' key and any other keys that start with a dash.

  use String::Formatter
    stringf => {
      -as => 'fmt_time',
      codes           => { ... },
      format_hunker   => ...,
      input_processor => ...,
    },
    stringf => {
      -as => 'fmt_date',
      codes           => { ... },
      string_replacer => ...,
      hunk_formatter  => ...,
    },
  ;

As you can see, this will generate two stringf routines, with different
behaviors, which are installed with different names. Since the behavior of
these routines is based on the 'format' method of a String::Formatter
object, the rest of the documentation will describe the way the object
behaves.

There's also a 'named_stringf' export, which behaves just like the
'stringf' export, but defaults to the 'named_replace' and
'require_named_input' arguments. There's a 'method_stringf' export, which
defaults 'method_replace' and 'require_single_input'. Finally, a
'indexed_stringf', which defaults to 'indexed_replaced' and
'require_arrayref_input'. For more on these, keep reading, and check out
the cookbook.

String::Formatter::Cookbook provides a number of recipes for ways to put
String::Formatter to use.

Provides

Requires

License

GPL-1.0-or-later

Changelog

* Sun Jan 01 2023 Tina Müller <timueller+perl@suse.de>
  - updated to 1.235
    see /usr/share/doc/packages/perl-String-Formatter/Changes
    1.235     2022-12-31 16:49:41-05:00 America/New_York
    - update metadata
* Sun Aug 29 2021 Tina Müller <timueller+perl@suse.de>
  - updated to 1.234
    see /usr/share/doc/packages/perl-String-Formatter/Changes
    1.234     2021-08-28 17:28:18-04:00 America/New_York
    - move bench.pl from dist root so it won't get installed to @INC
    - fix some problems with doc layout
* Mon Nov 25 2013 coolo@suse.com
  - updated to 0.102084
    - typo fixes
    - update repo and bugtracker links
* Mon Jan 09 2012 cfarrell@suse.com
  - license update: GPL-2.0
    Look at Formatter.pm - the licence makes no reference to an ^or later^
    version
* Mon Aug 29 2011 chris@computersalat.de
  - fix deps
    * ExtUtils::MakeMaker >= 6.31
    * Test::More >= 0.88
  - fix build for CentOS, RHEL, SLE_10, SLE_11
* Mon Jan 17 2011 coolo@novell.com
  - initial package 0.102082
    * created by cpanspec 1.78.03

Files

/usr/lib/perl5/vendor_perl/5.38.2/String
/usr/lib/perl5/vendor_perl/5.38.2/String/Formatter
/usr/lib/perl5/vendor_perl/5.38.2/String/Formatter.pm
/usr/lib/perl5/vendor_perl/5.38.2/String/Formatter/Cookbook.pm
/usr/share/doc/packages/perl-String-Formatter
/usr/share/doc/packages/perl-String-Formatter/Changes
/usr/share/doc/packages/perl-String-Formatter/README
/usr/share/licenses/perl-String-Formatter
/usr/share/licenses/perl-String-Formatter/LICENSE
/usr/share/man/man3/String::Formatter.3pm.gz
/usr/share/man/man3/String::Formatter::Cookbook.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Wed May 1 23:23:10 2024