App-sdif
view release on metacpan or search on metacpan
script/cdif view on Meta::CPAN
my $w = $app->unit eq 'letter' ? '' : '_';
qr{
\p{Han} | \p{InHiragana}+ | \p{InKatakana}+ |
[$w\p{Latin}]+ |
[$w\p{Hang}]+ |
[$w\p{Cyrillic}]+ |
[$w\p{Arabic}]+ |
[$w\p{Thai}]+ |
\d+ |
\p{Punct}+ |
[\ \t\r\f]*\n | \s+ | (.)\g{-1}*
}x;
}
};
##
## Converter/Effector function for visible characters
##
my($converter, $effector);
use Getopt::EX::LabeledParam;
Getopt::EX::LabeledParam
script/cdif view on Meta::CPAN
println @new if $app->show_new;
}
#
# diff --combined (generic)
#
elsif (m{^
(?<prefix> $prefix_re)
(?<command>
(?<mark> \@{2,} ) [ ]
(?<lines> (?: [-+]\d+(?:,\d+)? [ ] ){2,} )
\g{mark}
(?s:.*)
)
}x) {
my($prefix, $command, $lines) = @+{qw(prefix command lines)};
my $column = length $+{mark};
my @lines = map {
$_ eq ' ' ? 1 : int $_
} $lines =~ /\d+(?|,(\d+)|( ))/g;
if (@lines != $column) {
( run in 0.396 second using v1.01-cache-2.11-cpan-87723dcf8b7 )