Locale:...LangFam(3)
π NAME
okay so bestie, listen: Locale::Codes::LangFam is the module for dealing with langfam code sets. that's it, that's the whole vibe β¨
β¨ SYNOPSIS β¨
use Locale::Codes::LangFam;
$name = code2langfam(CODE);
$code = langfam2code(NAME);
@codes = all_langfam_codes();
@names = all_langfam_names();
like, literally that easy π
π¦ DESCRIPTION π¦
so this module gives you access to langfam code sets. no cap π
for the actual deets on what code sets exist, go read the Locale::Codes::Types document β it's giving reference material, it's iconic, it has the answers π«Ά
most of the routines take an optional extra argument that says which code set to use. you can hand it over as either the name of a code set, or as the perl constant listed in that same document. and if you just... don't specify one? the default code set gets used, easy peasy πΈ
π₯ ROUTINES π₯
every single routine in here calls the matching method inside the Locale::Codes module, using an object of type: langfam. so for the full tea on each function, go check the docs for Locale::Codes π
π the ones exported automatically for you
code2langfam(CODE [,CODESET] [,'retired'])β go look atcode2nameinLocale::Codesπcode2langfams(CODE [,CODESET])β go look atcode2namesinLocale::Codesβ¨langfam2code(NAME [,CODESET] [,'retired'])β go look atname2codeinLocale::Codesπlangfam_code2code(CODE ,CODESET ,CODESET2)β go look atcode2codeinLocale::Codesπ¦all_langfam_codes([CODESET] [,'retired'])β go look atall_codesinLocale::CodesπΈall_langfam_names([CODESET] [,'retired'])β go look atall_namesinLocale::Codesπ
π the ones that are NOT exported (call them fully qualified, with the package name, or they simply will not show up)
Locale::Codes::Langfam::show_errors(FLAG)β by default, bad input just gives you empty results and zero drama, no errors at all. but if you pass in a non-zero value ofFLAG, then errors WILL be produced π seeshow_errorsinLocale::Codes, but heads up: the default for the non-OO modules is to NOT produce errors πLocale::Codes::Langfam::rename_langfam(CODE ,NEW_NAME [,CODESET])β seerename_codeinLocale::CodesβLocale::Codes::Langfam::add_langfam(CODE ,NAME [,CODESET])β seeadd_codeinLocale::CodesπLocale::Codes::Langfam::delete_langfam(CODE [,CODESET])β seedelete_codeinLocale::Codesπ§Locale::Codes::Langfam::add_langfam_alias(NAME ,NEW_NAME)β seeadd_aliasinLocale::CodesπLocale::Codes::Langfam::delete_langfam_alias(NAME)β seedelete_aliasinLocale::CodesπLocale::Codes::Langfam::rename_langfam_code(CODE ,NEW_CODE [,CODESET])β seereplace_codeinLocale::Codesπ₯Locale::Codes::Langfam::add_langfam_code_alias(CODE ,NEW_CODE [,CODESET])β seeadd_code_aliasinLocale::Codesπ¦Locale::Codes::Langfam::delete_langfam_code_alias(CODE [,CODESET])β seedelete_code_aliasinLocale::Codesπ
π SEE ALSO π
Locale::Codesβ the Locale-Codes distribution. that's the whole entry, main character energy only π
π«Ά AUTHOR π«Ά
see Locale::Codes for the full author history, because the lore goes way back π
currently maintained by Sullivan Beck (sbeck@cpan.org) π
πΈ COPYRIGHT πΈ
Copyright (c) 2011-2024 Sullivan Beck
this module is free software; you can redistribute it and/or modify it under the same terms as Perl itself πͺπ
ok that's the whole page, you ate that bestie, go forth and langfam π§β¨
sign-off time: this is from perl v5.42.0, dated 2024-06-23 β and the manual name up top is Locale:...LangFam(3), in case you were wondering π
π¦
π¦ where this page comes from
- opensuse-leap 16.0: perl-Locale-Codes 3.790.0-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms