SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-String-Diff rpm build for : openSUSE Leap 15. For other distributions click perl-String-Diff.

Name : perl-String-Diff
Version : 0.07 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp150.13.1 Date : 2018-10-07 15:34:35
Group : Development/Libraries/Perl Source RPM : perl-String-Diff-0.07-lp150.13.1.src.rpm
Size : 0.02 MB
Packager : (none)
Summary : Simple diff to String
Description :
String::Diff is the difference of a consecutive string is made. after
general diff is done, the difference in the line is searchable.

the mark of the addition and the deletion can be freely changed. the color
is colored to the terminal with ANSI, using the HTML display it.

after the line is divided, diff is taken when \'linebreak\' option is
specified.

my($old_string, $new_string) = String::Diff::diff_fully(\'this is Perl\', \'this is Ruby\', linebreak => 1);
my($old_string, $new_string) = String::Diff::diff(\'this is Perl\', \'this is Ruby\', linebreak => 1);
my $string = String::Diff::diff_merge(\'this is Perl\', \'this is Ruby\', linebreak => 1);
my $string = String::Diff::diff_regexp(\'this is Perl\', \'this is Ruby\', linebreak => 1);

In diff and diff_merge methods the mark of the difference can be changed.

my $diff = String::Diff::diff(\'this is Perl\', \'this is Ruby\',{
remove_open => \'< del>\',
remove_close => \'< /del>\',
append_open => \'< ins>\',
append_close => \'< /ins>\',
});

You can escape callback set to diff function and diff_merge function.

use HTML::Entities
my($diff_old, $diff_new) = String::Diff::diff(
\'this is < b>Perl< /b>\',
\'this is < b>< BIG>R< /BIG>uby< /b>\',
remove_open => \'< del>\',
remove_close => \'< /del>\',
append_open => \'< ins>\',
append_close => \'< /ins>\',
escape => sub { encode_entities($_[0]) },
});
is($diff_old, \'this is <b>< del>Perl< /del></b>\');
is($diff_new, \'this is <b>< ins><BIG>R</BIG>uby< /ins></b>\');

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Leap_15.0/noarch

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(String::Diff)
perl-String-Diff

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Algorithm::Diff)
perl(Capture::Tiny)
perl(HTML::Entities)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/String
/usr/lib/perl5/vendor_perl/5.26.1/String/Diff.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-String-Diff
/usr/share/doc/packages/perl-String-Diff/Changes
/usr/share/doc/packages/perl-String-Diff/README
/usr/share/doc/packages/perl-String-Diff/README.mkdn
/usr/share/man/man3/String::Diff.3pm.gz

 
ICM