App-sdif
view release on metacpan or search on metacpan
lib/App/cdif/Command/Mecab.pm view on Meta::CPAN
grep { not $removeme->() }
map { /\A\w/ ? $_ : uniqchar($_) }
grep { length }
$result =~ /^([^\w\n]*+)(.*)\n/mg;
};
}
sub uniqchar {
my @s;
for (@_) {
while (/(\X)\g{-1}*/pg) {
push @s, ${^MATCH};
}
}
@s;
}
1;
script/cdif view on Meta::CPAN
} else {
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})\g{-1}* |
[\h\r\f]*\n | \s+ | (\X)\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.390 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )