1Locale::Codes::LangVar(U3s)er Contributed Perl DocumentatLioocnale::Codes::LangVar(3)
2
3
4

NAME

6       Locale::Codes::LangVar - standard codes for language variation
7       identification
8

SYNOPSIS

10          use Locale::Codes::LangVar;
11
12          $lvar = code2langvar('acm');                 # $lvar gets 'Mesopotamian Arabic'
13          $code = langvar2code('Mesopotamian Arabic'); # $code gets 'acm'
14
15          @codes   = all_langvar_codes();
16          @names   = all_langvar_names();
17

DESCRIPTION

19       The "Locale::Codes::LangVar" module provides access to standard codes
20       used for identifying language variations, such as those as defined in
21       the IANA language registry.
22
23       Most of the routines take an optional additional argument which
24       specifies the code set to use. If not specified, the default IANA
25       language registry codes will be used.
26

SUPPORTED CODE SETS

28       There are several different code sets you can use for identifying
29       language variations. A code set may be specified using either a name,
30       or a constant that is automatically exported by this module.
31
32       For example, the two are equivalent:
33
34          $lvar = code2langvar('arevela','alpha');
35          $lvar = code2langvar('arevela',LOCALE_LANGVAR_ALPHA);
36
37       The codesets currently supported are:
38
39       alpha
40           This is the set of alphanumeric codes from the IANA language
41           registry, such as 'arevela' for Eastern Armenian.
42
43           This code set is identified with the symbol "LOCALE_LANGVAR_ALPHA".
44
45           This is the default code set.
46

ROUTINES

48       code2langvar ( CODE [,CODESET] )
49       langvar2code ( NAME [,CODESET] )
50       langvar_code2code ( CODE ,CODESET ,CODESET2 )
51       all_langvar_codes ( [CODESET] )
52       all_langvar_names ( [CODESET] )
53       Locale::Codes::LangVar::rename_langvar  ( CODE ,NEW_NAME [,CODESET] )
54       Locale::Codes::LangVar::add_langvar  ( CODE ,NAME [,CODESET] )
55       Locale::Codes::LangVar::delete_langvar  ( CODE [,CODESET] )
56       Locale::Codes::LangVar::add_langvar_alias  ( NAME ,NEW_NAME )
57       Locale::Codes::LangVar::delete_langvar_alias  ( NAME )
58       Locale::Codes::LangVar::rename_langvar_code  ( CODE ,NEW_CODE
59       [,CODESET] )
60       Locale::Codes::LangVar::add_langvar_code_alias  ( CODE ,NEW_CODE
61       [,CODESET] )
62       Locale::Codes::LangVar::delete_langvar_code_alias  ( CODE [,CODESET] )
63           These routines are all documented in the Locale::Codes::API man
64           page.
65

SEE ALSO

67       Locale::Codes
68           The Locale-Codes distribution.
69
70       Locale::Codes::API
71           The list of functions supported by this module.
72
73       http://www.iana.org/assignments/language-subtag-registry
74           The IANA language subtag registry.
75

AUTHOR

77       See Locale::Codes for full author history.
78
79       Currently maintained by Sullivan Beck (sbeck@cpan.org).
80
82          Copyright (c) 2011-2013 Sullivan Beck
83
84       This module is free software; you can redistribute it and/or modify it
85       under the same terms as Perl itself.
86
87
88
89perl v5.16.3                      2013-04-12         Locale::Codes::LangVar(3)
Impressum