| 1 | package Locale::Codes::Language; | ||
| 2 | # Copyright (C) 2001 Canon Research Centre Europe (CRE). | ||
| 3 | # Copyright (C) 2002-2009 Neil Bowers | ||
| 4 | # Copyright (c) 2010-2026 Sullivan Beck | ||
| 5 | # This program is free software; you can redistribute it and/or modify it | ||
| 6 | # under the same terms as Perl itself. | ||
| 7 | |||
| 8 | # This file was automatically generated. Any changes to this file will | ||
| 9 | # be lost the next time 'gen_mods' is run. | ||
| 10 | # Generated on: Tue Sep 1 12:13:46 EDT 2026 | ||
| 11 | |||
| 12 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | require 5.006; | |
| 15 | 1 | ▶ | use Exporter qw(import); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 1 | our($VERSION,@EXPORT); | |
| 18 | 1 | $VERSION = '3.91'; | |
| 19 | |||
| 20 | ################################################################################ | ||
| 21 | 1 | ▶ | use if $] >= 5.027007, 'deprecate'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 1 | ▶ | use Locale::Codes; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | 1 | ▶ | use Locale::Codes::Constants; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | 1 | @EXPORT = qw( | |
| 26 | code2language | ||
| 27 | code2languages | ||
| 28 | language2code | ||
| 29 | all_language_codes | ||
| 30 | all_language_names | ||
| 31 | language_code2code | ||
| 32 | ); | ||
| 33 | 1 | push(@EXPORT,@Locale::Codes::Constants::CONSTANTS_LANGUAGE); | |
| 34 | |||
| 35 | 1 | our $obj = new Locale::Codes('language'); | |
| 36 | 1 | $obj->show_errors(0); | |
| 37 | |||
| 38 | 1 | ▶ | sub show_errors { |
|
Subroutine
show_errors: called CC=1 SCAR=0.0
Pod
documented
| |||
| 39 | 1 | my($val) = @_; | |
| 40 | 1 | $obj->show_errors($val); | |
| 41 | } | ||
| 42 | |||
| 43 | 44 | ▶ | sub code2language { |
|
Subroutine
code2language: called CC=1 SCAR=0.0
Pod
documented
| |||
| 44 | 44 | return $obj->code2name(@_); | |
| 45 | } | ||
| 46 | |||
| 47 | 0 | ▶ | sub code2languages { |
|
Subroutine
code2languages: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 48 | 0 | return $obj->code2names(@_); | |
| 49 | } | ||
| 50 | |||
| 51 | 13 | ▶ | sub language2code { |
|
Subroutine
language2code: called CC=1 SCAR=0.0
Pod
documented
| |||
| 52 | 13 | return $obj->name2code(@_); | |
| 53 | } | ||
| 54 | |||
| 55 | 1 | ▶ | sub language_code2code { |
|
Subroutine
language_code2code: called CC=1 SCAR=0.0
Pod
documented
| |||
| 56 | 1 | return $obj->code2code(@_); | |
| 57 | } | ||
| 58 | |||
| 59 | 1 | ▶ | sub all_language_codes { |
|
Subroutine
all_language_codes: called CC=1 SCAR=0.0
Pod
documented
| |||
| 60 | 1 | return $obj->all_codes(@_); | |
| 61 | } | ||
| 62 | |||
| 63 | 1 | ▶ | sub all_language_names { |
|
Subroutine
all_language_names: called CC=1 SCAR=0.0
Pod
documented
| |||
| 64 | 1 | return $obj->all_names(@_); | |
| 65 | } | ||
| 66 | |||
| 67 | 5 | ▶ | sub rename_language { |
|
Subroutine
rename_language: called CC=1 SCAR=0.0
Pod
documented
| |||
| 68 | 5 | return $obj->rename_code(@_); | |
| 69 | } | ||
| 70 | |||
| 71 | 1 | ▶ | sub add_language { |
|
Subroutine
add_language: called CC=1 SCAR=0.0
Pod
documented
| |||
| 72 | 1 | return $obj->add_code(@_); | |
| 73 | } | ||
| 74 | |||
| 75 | 1 | ▶ | sub delete_language { |
|
Subroutine
delete_language: called CC=1 SCAR=0.0
Pod
documented
| |||
| 76 | 1 | return $obj->delete_code(@_); | |
| 77 | } | ||
| 78 | |||
| 79 | 1 | ▶ | sub add_language_alias { |
|
Subroutine
add_language_alias: called CC=1 SCAR=0.0
Pod
documented
| |||
| 80 | 1 | return $obj->add_alias(@_); | |
| 81 | } | ||
| 82 | |||
| 83 | 1 | ▶ | sub delete_language_alias { |
|
Subroutine
delete_language_alias: called CC=1 SCAR=0.0
Pod
documented
| |||
| 84 | 1 | return $obj->delete_alias(@_); | |
| 85 | } | ||
| 86 | |||
| 87 | 1 | ▶ | sub rename_language_code { |
|
Subroutine
rename_language_code: called CC=1 SCAR=0.0
Pod
documented
| |||
| 88 | 1 | return $obj->replace_code(@_); | |
| 89 | } | ||
| 90 | |||
| 91 | 1 | ▶ | sub add_language_code_alias { |
|
Subroutine
add_language_code_alias: called CC=1 SCAR=0.0
Pod
documented
| |||
| 92 | 1 | return $obj->add_code_alias(@_); | |
| 93 | } | ||
| 94 | |||
| 95 | 1 | ▶ | sub delete_language_code_alias { |
|
Subroutine
delete_language_code_alias: called CC=1 SCAR=0.0
Pod
documented
| |||
| 96 | 1 | return $obj->delete_code_alias(@_); | |
| 97 | } | ||
| 98 | |||
| 99 | 1 | 1; | |