1Locale::Codes::LangExt(U3s)er Contributed Perl DocumentatLioocnale::Codes::LangExt(3)
2
3
4
6 Locale::Codes::LangExt - standard codes for language extension
7 identification
8
10 use Locale::Codes::LangExt;
11
12 $lext = code2langext('acm'); # $lext gets 'Mesopotamian Arabic'
13 $code = langext2code('Mesopotamian Arabic'); # $code gets 'acm'
14
15 @codes = all_langext_codes();
16 @names = all_langext_names();
17
19 The "Locale::Codes::LangExt" module provides access to standard codes
20 used for identifying language extensions, 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
28 There are several different code sets you can use for identifying
29 language extensions. 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 $lext = code2langext('acm','alpha');
35 $lext = code2langext('acm',LOCALE_LANGEXT_ALPHA);
36
37 The codesets currently supported are:
38
39 alpha
40 This is the set of three-letter (lowercase) codes from the IANA
41 language registry, such as 'acm' for Mesopotamian Arabic.
42
43 This is the default code set.
44
46 code2langext ( CODE [,CODESET] )
47 langext2code ( NAME [,CODESET] )
48 langext_code2code ( CODE ,CODESET ,CODESET2 )
49 all_langext_codes ( [CODESET] )
50 all_langext_names ( [CODESET] )
51 Locale::Codes::LangExt::rename_langext ( CODE ,NEW_NAME [,CODESET] )
52 Locale::Codes::LangExt::add_langext ( CODE ,NAME [,CODESET] )
53 Locale::Codes::LangExt::delete_langext ( CODE [,CODESET] )
54 Locale::Codes::LangExt::add_langext_alias ( NAME ,NEW_NAME )
55 Locale::Codes::LangExt::delete_langext_alias ( NAME )
56 Locale::Codes::LangExt::rename_langext_code ( CODE ,NEW_CODE
57 [,CODESET] )
58 Locale::Codes::LangExt::add_langext_code_alias ( CODE ,NEW_CODE
59 [,CODESET] )
60 Locale::Codes::LangExt::delete_langext_code_alias ( CODE [,CODESET] )
61 These routines are all documented in the Locale::Codes::API man
62 page.
63
65 Locale::Codes
66 The Locale-Codes distribution.
67
68 Locale::Codes::API
69 The list of functions supported by this module.
70
71 http://www.iana.org/assignments/language-subtag-registry
72 The IANA language subtag registry.
73
75 See Locale::Codes for full author history.
76
77 Currently maintained by Sullivan Beck (sbeck@cpan.org).
78
80 Copyright (c) 2011-2013 Sullivan Beck
81
82 This module is free software; you can redistribute it and/or modify it
83 under the same terms as Perl itself.
84
85
86
87perl v5.16.3 2013-02-27 Locale::Codes::LangExt(3)