Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-Text-Capitalize | Distribution: openSUSE Tumbleweed |
Version: 1.5 | Vendor: openSUSE |
Release: 1.10 | Build date: Sat Sep 28 15:48:17 2019 |
Group: Development/Libraries/Perl | Build host: reproducible |
Size: 35245 | Source RPM: perl-Text-Capitalize-1.5-1.10.src.rpm |
Packager: http://bugs.opensuse.org | |
Url: https://metacpan.org/release/Text-Capitalize | |
Summary: Capitalize strings ("to WORK AS titles" becomes "To Work as Titles") |
Text::Capitalize provides some routines for *title-like* formatting of strings. The simple *capitalize* function just makes the inital character of each word uppercase, and forces the rest to lowercase. The *capitalize_title* function applies English title case rules (discussed below) where only the "important" words are supposed to be capitalized. There are also some customization features provided to allow the user to choose variant rules. Comparing *capitalize* and *captialize_title*: Input: "lost watches of splitsville" capitalize: "Lost Watches Of Splitsville" capitalize_title: "Lost Watches of Splitsville" Some examples of formatting with *capitalize_title*: Input: "KiLLiNG TiMe" capitalize_title: "Killing Time" Input: "we have come to wound the autumnal city" capitalize_title: "We Have Come to Wound the Autumnal City" Input: "ask for whom they ask for" captialize_title: "Ask for Whom They Ask For" Text::Capitalize also provides some functions for special effects such as *scramble_case*, which typically would be used for this sort of transformation: Input: "get whacky" scramble_case: "gET wHaCkY" (or something similar)
Artistic-1.0 OR GPL-1.0-or-later
* Sat Sep 28 2019 <timueller+perl@suse.de> - updated to 1.5 see /usr/share/doc/packages/perl-Text-Capitalize/Changes 1.4 Changed uc calls to ucfirst (hypothetically better for title-casing with unicode strings) 1.5 Removed PerlIO::locale dependency from tests, got rid of the Andy Lester tests of pod and such. * Wed Apr 15 2015 coolo@suse.com - initial package $version * created by $NAME $VERSION
/usr/lib/perl5/vendor_perl/5.40.0/Text /usr/lib/perl5/vendor_perl/5.40.0/Text/Capitalize.pm /usr/share/doc/packages/perl-Text-Capitalize /usr/share/doc/packages/perl-Text-Capitalize/Changes /usr/share/doc/packages/perl-Text-Capitalize/README /usr/share/man/man3/Text::Capitalize.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Wed Nov 20 00:28:09 2024