projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f5852c
)
locale.t: In-line function to its only call
author
Karl Williamson
<public@khwilliamson.com>
Mon, 16 Jan 2012 20:55:09 +0000
(13:55 -0700)
committer
Karl Williamson
<public@khwilliamson.com>
Sat, 21 Jan 2012 17:02:54 +0000
(10:02 -0700)
This will be needed in future commits
lib/locale.t
patch
|
blob
|
history
diff --git
a/lib/locale.t
b/lib/locale.t
index
0312eb3
..
b8436bf
100644
(file)
--- a/
lib/locale.t
+++ b/
lib/locale.t
@@
-337,10
+337,6
@@
my @Locale;
my $Locale;
my @Alnum_;
-sub getalnum_ {
- sort grep /\w/, map { chr } 0..255
-}
-
sub trylocale {
my $locale = shift;
return if grep { $locale eq $_ } @Locale;
@@
-510,7
+506,8
@@
foreach $Locale (@Locale) {
next;
}
- @Alnum_ = getalnum_();
+ @Alnum_ = sort grep /\w/, map { chr } 0..255;
+
debug "# w = ", join("",@Alnum_), "\n";
# Sieve the uppercase and the lowercase.