From 1f4b1b52f4cf57a4661022c932e7bab3f642ab16 Mon Sep 17 00:00:00 2001 From: mitty Date: Thu, 24 Jan 2013 12:06:25 +0000 Subject: [PATCH] * change function name to reuse code easily git-svn-id: https://lab.mitty.jp/svn/lab/trunk@188 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- misc/findcombinable.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 1.7.9.5