summaryrefslogtreecommitdiff
path: root/dist/I18N-LangTags
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-08-09 18:06:38 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-08-10 13:32:34 -0700
commite0d3d5f5ef3302519c375a84615d5b8630632c62 (patch)
tree848d42a608d4e8ff929d3f438240b5665506caa9 /dist/I18N-LangTags
parent87916f79aa07b5dbe56ccb225f526e8752c462ad (diff)
downloadperl-e0d3d5f5ef3302519c375a84615d5b8630632c62.tar.gz
Keep verbatim pod in I18N:LT and IO.pm within 80 cols
Diffstat (limited to 'dist/I18N-LangTags')
-rw-r--r--dist/I18N-LangTags/lib/I18N/LangTags.pm22
1 files changed, 11 insertions, 11 deletions
diff --git a/dist/I18N-LangTags/lib/I18N/LangTags.pm b/dist/I18N-LangTags/lib/I18N/LangTags.pm
index 85a4f2263b..42ff0fccba 100644
--- a/dist/I18N-LangTags/lib/I18N/LangTags.pm
+++ b/dist/I18N-LangTags/lib/I18N/LangTags.pm
@@ -19,7 +19,7 @@ require Exporter;
);
%EXPORT_TAGS = ('ALL' => \@EXPORT_OK);
-$VERSION = "0.36";
+$VERSION = "0.37";
sub uniq { my %seen; return grep(!($seen{$_}++), @_); } # a util function
@@ -579,16 +579,16 @@ tag ("ar") exists.
Examples:
- alternate_language_tags('no-bok') is ('nb')
- alternate_language_tags('nb') is ('no-bok')
- alternate_language_tags('he') is ('iw')
- alternate_language_tags('iw') is ('he')
- alternate_language_tags('i-hakka') is ('zh-hakka', 'x-hakka')
- alternate_language_tags('zh-hakka') is ('i-hakka', 'x-hakka')
- alternate_language_tags('en') is ()
- alternate_language_tags('x-mingo-tom') is ('i-mingo-tom')
- alternate_language_tags('x-klikitat') is ('i-klikitat')
- alternate_language_tags('i-klikitat') is ('x-klikitat')
+ alternate_language_tags('no-bok') is ('nb')
+ alternate_language_tags('nb') is ('no-bok')
+ alternate_language_tags('he') is ('iw')
+ alternate_language_tags('iw') is ('he')
+ alternate_language_tags('i-hakka') is ('zh-hakka', 'x-hakka')
+ alternate_language_tags('zh-hakka') is ('i-hakka', 'x-hakka')
+ alternate_language_tags('en') is ()
+ alternate_language_tags('x-mingo-tom') is ('i-mingo-tom')
+ alternate_language_tags('x-klikitat') is ('i-klikitat')
+ alternate_language_tags('i-klikitat') is ('x-klikitat')
This function returns empty-list if given anything other than a formally
valid language tag.