From: mitty Date: Thu, 24 Jan 2013 12:06:25 +0000 (+0000) Subject: * change function name to reuse code easily X-Git-Url: http://lab.mitty.jp/git/?a=commitdiff_plain;h=1f4b1b52f4cf57a4661022c932e7bab3f642ab16;p=lab.git * change function name to reuse code easily git-svn-id: https://lab.mitty.jp/svn/lab/trunk@188 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- diff --git a/misc/findcombinable.pl b/misc/findcombinable.pl index 464ecb8..b6e62a9 100755 --- a/misc/findcombinable.pl +++ b/misc/findcombinable.pl @@ -12,7 +12,7 @@ if (! -d $top) { exit; } checkdir($top); -sub combinable { +sub match { my $str = shift @_; if ($str ne NFC($str)) { @@ -36,7 +36,7 @@ sub checkdir { my @dirs; while (my $entry = shift @entries) { next if ($entry =~ /^\.+$/); - if (combinable($entry)) { + if (match($entry)) { print "'$target/$entry' can be composed\n"; next; }